blob: c0f1ee3dfd65d526a7f39fd370c446e6328bd45e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// |jit-test| error:ReferenceError
(function(global) {
global.makeIterator = function makeIterator(overrides) {
var iterator = {
return: function(x) {
return overrides.ret(x);
}
};
return function() {
return iterator;
};
}
})(this);
var iterable = {};
iterable[Symbol.iterator] = makeIterator({
ret: (function() {
enableGeckoProfilingWithSlowAssertions();
})
});
0, [...{} [throwlhs()]] = iterable;
|