-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow use of ES3 FutureReservedWord in dot position with es3:true #2231
Comments
The regression was introduced in 9782fc8 |
Added Needs Discussion since it was done on purpose - it wasn't a straight forward regression. |
I'm having the same problem with |
@ljharb No, it isn't a syntax error in older IE. See also #674, #674 (comment), and qunitjs/qunit#267 (comment). http://codepen.io/Krinkle/debug/KpxGRR works fine in WinXP/IE6. |
hm, so you're saying that |
#1000 points out that For safety, I still think it would be a good idea when FutureReservedWords, for reference, from http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf:
|
if I might add something to this discussion, iOS5 which never made it to 6 and others might silently die using |
Do you have a link that discusses which versions of iOS will syntax-error on using which future reserved words? |
@jdforrester I think we should be clear though - if a keyword in dot notation syntax errors on any version of any browser, then it seems to me like |
fwiw, the related |
@Krinkle why close this? it's still an issue. |
@ljharb Mainly because active projects I'm involved with no longer require ES3 syntax compatibility. And either way, the majority was migrated to use ESLint instead of JSHint+JSCS. Lower priority bugs should generally remain open, but there is a certain point where the priority is so low it is very unlikely to get resolved quicker than the bug itself becoming obsolete (e.g. JSHint 3.x dropping support for ES3 or something like that, or, JSHint merging with ESLint). Most likely anyone this bug will ever apply to has already worked around it. And that group will only keep getting smaller. |
This re-opens #674. (Regression.)
It seems code using
obj.static
no longer passes JSHint withes3: true
. As discussed at #674 and as was fixed once I believe, FutureReservedWords are allowed in ES3 engines. The spec wasn't too clear on them, but actual implementations were.It seems JSHint source code still reads as if this works, but in practice it is actually failing:
jshint/src/jshint.js
Lines 136 to 142 in 96a97d0
However the following code still produces warnings on JSHint 2.6.1 as well as on jshint.com:
The text was updated successfully, but these errors were encountered: