Bug 1357075 - Pad a nop to unwind to the scope just before a destructuring iterator close trynote

Issue #74
This commit is contained in:
janekptacijarabaci 2018-03-25 18:24:06 +02:00 • committed by Roy Tam
commit ac07311b18
7 changed files with 43 additions and 5 deletions

View 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]) {}