NEW258715
Destructuring assignment in for-in loop throws `undefined is not a function`
https://bugs.webkit.org/show_bug.cgi?id=258715
Summary Destructuring assignment in for-in loop throws `undefined is not a function`
YuHao Hu
Reported 2023-06-30 02:08:12 PDT
git commit id: 8cdb27dae2a958f4ad5ff00f4900a7c235835247 ``` for (const a in ",,,,,,,,,,,") { [,,,] = a; } ``` run args: ``` WebKitBuild/Debug/bin/jsc --useConcurrentJIT=0 --jitPolicyScale=0.001 --useFTLJIT=0 test.js ``` program output: ``` Exception: TypeError: undefined is not a function (near '...[,,,]...') global code@test.js:2:5 ``` Expected behavior should not output anything.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-07-07 02:09:15 PDT
YuHao Hu
Comment 2 2024-08-20 01:20:49 PDT
this bug still exists in the current main webkit branch(e466bf21b480e413f8d9d2220dc2b2bb9feb2d92)
Note You need to log in before you can comment on or make changes to this bug.