Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Computed Property names should allow only AssignmentExpressions not a…
…ny Expression https://bugs.webkit.org/show_bug.cgi?id=142902 Reviewed by Ryosuke Niwa. Source/JavaScriptCore: * parser/Parser.cpp: (JSC::Parser<LexerType>::parseProperty): Limit computed expressions to just assignment expressions instead of any expression (which allowed comma expressions). LayoutTests: * js/basic-computed-property-name-expected.txt: * js/object-literal-computed-methods-expected.txt: * js/script-tests/basic-computed-property-name.js: (runTest.runTest.runTest.runTest.runTest.runTest.runTest.runTestThrow): * js/script-tests/object-literal-computed-methods.js: Test that comma expressions are not allowed in computed property/method names. Canonical link: https://commits.webkit.org/160960@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
e9f120b
commit ca86dae8bfd3258e7d18846adfc6659f55e15d9e
Showing
7 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters