michael@0: // A proxy on the prototype chain of the global can't intercept lazy definition of globals. michael@0: // Thanks to André Bargull for this one. michael@0: michael@0: var global = this; michael@0: var status = "pass"; michael@0: var handler = { michael@0: get: function get(t, pk, r) { status = "FAIL get"; }, michael@0: has: function has(t, pk) { status = "FAIL has"; } michael@0: }; michael@0: Object.prototype.__proto__ = new Proxy(Object.create(null), handler); michael@0: Map; michael@0: assertEq(status, "pass");