You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My code had function like this: function myFunc(obj, ...arguments). Turns out arguments is a reserved keyword that does exactly the thing I was trying to do! 😄 I discovered this when I added 'use strict' to my code and node gave an error. I'm not sure if this case is within the scope of this project but anyway I wanted to document this in case someone else is struggling with similar problem!
Expected Behavior
Nyc should fail with a meaningful error message.
Bonus Points! Code (or Repository) that Reproduces Issue
Thanks for this issue, and sorry for the late reply! I appreciate the documentation, and I think it could be captured on the wiki site in a gotchas/troubleshooting section. Feel free to make a PR if you are able.
Observed Behavior
I was working an a small side project today and had a frustrating experience with nyc. After everything I tried all i got for output was:
My code had function like this:
function myFunc(obj, ...arguments)
. Turns outarguments
is a reserved keyword that does exactly the thing I was trying to do! 😄 I discovered this when I added'use strict'
to my code and node gave an error. I'm not sure if this case is within the scope of this project but anyway I wanted to document this in case someone else is struggling with similar problem!Expected Behavior
Nyc should fail with a meaningful error message.
Bonus Points! Code (or Repository) that Reproduces Issue
Rename
arguments
toargs
and everything works as it should.Forensic Information
Operating System: Ubuntu on Windows subsystem for linux.
Node version: v8.10.0
Nyc version: 11.6.0
Yarn version: 1.5.1
The text was updated successfully, but these errors were encountered: