diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/proxy/bug901979-1.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/proxy/bug901979-1.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,12 @@ +// A proxy on the prototype chain of the global can't intercept lazy definition of globals. +// Thanks to André Bargull for this one. + +var global = this; +var status = "pass"; +var handler = { + get: function get(t, pk, r) { status = "FAIL get"; }, + has: function has(t, pk) { status = "FAIL has"; } +}; +Object.prototype.__proto__ = new Proxy(Object.create(null), handler); +Map; +assertEq(status, "pass");