michael@0: // |jit-test| error:TypeError michael@0: michael@0: // Binary: cache/js-dbg-64-e8ee411dca70-linux michael@0: // Flags: michael@0: // michael@0: x = Proxy.create((function () { michael@0: return { michael@0: get: Object.create michael@0: } michael@0: })([]), "") michael@0: try { michael@0: (function () { michael@0: for each(l in [0]) { michael@0: print(x) michael@0: } michael@0: })() michael@0: } catch (e) {} michael@0: gc() michael@0: for each(let a in [0]) { michael@0: print(x) michael@0: }