{"action":"opened","issue":{"url":"https://api.github.com/repos/bcoe/nyc/issues/264","repository_url":"https://api.github.com/repos/bcoe/nyc","labels_url":"https://api.github.com/repos/bcoe/nyc/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/bcoe/nyc/issues/264/comments","events_url":"https://api.github.com/repos/bcoe/nyc/issues/264/events","html_url":"https://github.com/bcoe/nyc/issues/264","id":157399422,"number":264,"title":"Generating coverage produces errors when testing code that uses ES 6 default/override pattern","user":{"login":"patrickarlt","id":378557,"avatar_url":"https://avatars.githubusercontent.com/u/378557?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickarlt","html_url":"https://github.com/patrickarlt","followers_url":"https://api.github.com/users/patrickarlt/followers","following_url":"https://api.github.com/users/patrickarlt/following{/other_user}","gists_url":"https://api.github.com/users/patrickarlt/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickarlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickarlt/subscriptions","organizations_url":"https://api.github.com/users/patrickarlt/orgs","repos_url":"https://api.github.com/users/patrickarlt/repos","events_url":"https://api.github.com/users/patrickarlt/events{/privacy}","received_events_url":"https://api.github.com/users/patrickarlt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-29T18:41:09Z","updated_at":"2016-05-29T18:41:09Z","closed_at":null,"body":"I'm testing code that uses the [ES 6 default override pattern](https://gist.github.com/ericelliott/f3c2a53a1d4100539f71) in some code I am testing. When testing regularly with node-tap (which bundles nyc) or ava (which recommends nyc) the tests pass. But when I use nyc to generate coverage reports there are errors that are not present when not generating coverage.\r\n\r\nI've created a [minimal reproduction of this issue in this gist](https://gist.github.com/patrickarlt/db48968e267c6d50b08b9459c33d6cb2/). which shows Node 6.2.0 being able to run the tests without coverage (`tap node-tap-test.js` and `ava ava-test.js`) and passing but when running with coverage (`tap test-node-tap.js --coverage-report=text` and `nyc ava ava-test.js`) the tests fail and the parameters padded to the `say(options)` function end up being undefined."}}
{"actor":{"display_login":"patrickarlt"}}