summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug770952.js
blob: 2a6efeeb7a8c92bcb965435fd5da8431725ac80f (plain)
1
2
3
4
5
6
7
// |jit-test| error: TypeError
load(libdir + "iteration.js");

eval("var x; typeof x")
Array.prototype[Symbol.iterator] = function () { for(y in x); };
for (var v of ['a', 'b', 'c', 'd'])
    s = v;