1 2 3 4 5 6 7
foo = 1; Object.defineProperty(this, "foo", {writable:false, configurable:true}); foo = 2; assertEq(foo, 1); if (typeof reportCompare === "function") reportCompare(true, true);