michael@0: // |jit-test| error: TypeError michael@0: load(libdir + "iteration.js"); michael@0: michael@0: eval("var x; typeof x") michael@0: Array.prototype[std_iterator] = function () { for(y in x); }; michael@0: for (var v of ['a', 'b', 'c', 'd']) michael@0: s = v;