[Webkit-unassigned] [Bug 247436] New: `in` operator inside for statement destructuring
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 3 09:17:48 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=247436
Bug ID: 247436
Summary: `in` operator inside for statement destructuring
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
for ( var { x = 0 in [ 0 ] } of [ 0 ] );
_____________________
Hello,
Executing the input.js using JSC throws SyntaxError, but it is expected to terminate normally.
Running the input.js with JSC gives
---
$ jsc input.js
Exception: SyntaxError: Unexpected keyword 'in'. Expected either a closing '}' or an ',' after a property destructuring pattern.
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/b42743c7/attachment.htm>
More information about the webkit-unassigned
mailing list