[Webkit-unassigned] [Bug 247435] New: Property access of sparse array in LHS throws unexpected `SyntaxError`
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 3 09:16:47 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=247435
Bug ID: 247435
Summary: Property access of sparse array in LHS throws
unexpected `SyntaxError`
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: p51lee at kaist.ac.kr
// input.js
[ + 0 , ] [ 0 ] = 0 ;
// Note: this is fine
// [ 0 , ] [ 0 ] = 0 ;
_____________________
Hello,
Executing the input.js using JSC throws SyntaxError, but it is expected to be terminated normally.
Running the input.js with JSC gives
---
$ jsc input.js
Exception: SyntaxError: Left hand side of operator '=' must be a reference.
at input.js:1
---
while other engines behave like
---
# V8
$ node input.js
// no error
# GraalJS
$ js input.js
// no error
---
WebKit version: 615.1.10
--
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/20221103/aca7dc04/attachment.htm>
More information about the webkit-unassigned
mailing list