mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 03:57:30 +09:00
Bug 1357075 - Pad a nop to unwind to the scope just before a destructuring iterator close trynote
Issue #74
This commit is contained in:
parent
8af5664922
commit
ac07311b18
7 changed files with 43 additions and 5 deletions
10
js/src/jit-test/tests/parser/bug-1357075.js
Normal file
10
js/src/jit-test/tests/parser/bug-1357075.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// |jit-test| error: TypeError
|
||||
|
||||
var iterable = {};
|
||||
var iterator = {
|
||||
return: 1
|
||||
};
|
||||
iterable[Symbol.iterator] = function() {
|
||||
return iterator;
|
||||
};
|
||||
for ([ class get {} ().iterator ] of [iterable]) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue