[Webkit-unassigned] [Bug 171048] New: Should not be able to use a keyword in object literal shorthand syntax
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 20 01:35:22 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=171048
Bug ID: 171048
Summary: Should not be able to use a keyword in object literal
shorthand syntax
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: joepeck at webkit.org
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170420/916298cd/attachment-0001.html>
More information about the webkit-unassigned
mailing list