Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3b17285b1ce697a56d8c48b9268103847436337b
https://github.com/WebKit/WebKit/commit/3b17285b1ce697a56d8c48b9268103847436337b
Author: Yusuke Suzuki <[email protected]>
Date: 2022-11-08 (Tue, 08 Nov 2022)
Changed paths:
A JSTests/stress/assignment-array.js
M Source/JavaScriptCore/parser/Parser.cpp
Log Message:
-----------
Property access of sparse array in LHS throws unexpected `SyntaxError`
https://bugs.webkit.org/show_bug.cgi?id=247435
rdar://102065657
Reviewed by Mark Lam.
We should properly clear nonLHSCount after ArrayLiteral parsing.
We use SetForScope to do that via RAII.
* JSTests/stress/assignment-array.js: Added.
* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseDestructuringPattern):
(JSC::Parser<LexerType>::parseObjectLiteral):
(JSC::Parser<LexerType>::parseArrayLiteral):
(JSC::Parser<LexerType>::parsePrimaryExpression):
(JSC::Parser<LexerType>::parseMemberExpression):
Canonical link: https://commits.webkit.org/256471@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes