michael@0: // |jit-test| error: TypeError michael@0: michael@0: try { michael@0: x = [] michael@0: y = function() {} michael@0: t = Uint8ClampedArray michael@0: Object.defineProperty(x, 1, { michael@0: get: (function() { michael@0: for (v of t) {} michael@0: }) michael@0: }) michael@0: Object.defineProperty(x, 8, { michael@0: configurable: t michael@0: }).reverse() michael@0: } catch (e) {} michael@0: Object.defineProperty([], 1, { michael@0: configurable: true, michael@0: get: (function() { michael@0: for (j = 0; j < 50; ++j) { michael@0: y() michael@0: } michael@0: }) michael@0: }).pop() michael@0: x.map(y)