New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global directive parse issue in v1.0.0-rc2 #795

Closed
dougwilson opened this Issue Jan 2, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@dougwilson
Copy link
Contributor

dougwilson commented Jan 2, 2013

The following file:

/*global global:false */
global.test = 1;

Generates the following output with the unused and undef options:

test.js: line 2, col 1, 'global' is not defined.
test.js: line 1, col 0, '' is defined but never used.

2 errors

It looks like when /*global global:false */ is parsed, it thinks instead of defining the variable "global", is is defining the variable "" (empty string).

@valueof valueof closed this in 0f116f6 Jan 2, 2013

@valueof

This comment has been minimized.

Copy link
Member

valueof commented Jan 2, 2013

Thanks!

jugglinmike added a commit to jugglinmike/jshint that referenced this issue Oct 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment