WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 170979
171048
Should not be able to use a keyword in object literal shorthand syntax
https://bugs.webkit.org/show_bug.cgi?id=171048
Summary
Should not be able to use a keyword in object literal shorthand syntax
Joseph Pecoraro
Reported
Thursday, April 20, 2017 9:35:22 AM UTC
Summary: Should not be able to use a keyword in object literal shorthand syntax Test: js> var o = {class}; Expected: SyntaxError - cannot use a reserved word here Actual: ReferenceError - no variable named class Notes: • Chrome: Uncaught SyntaxError: Unexpected token } • Firefox: SyntaxError: keyword 'class' is a reserved identifier
Attachments
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
Friday, April 21, 2017 7:34:55 PM UTC
I have a fix for this, but I'm going to include the fix in:
https://bugs.webkit.org/show_bug.cgi?id=170979
*** This bug has been marked as a duplicate of
bug 170979
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug