michael@0: (function() { michael@0: var s = "__proto__"; michael@0: assertEq(arguments[s], Object.prototype); michael@0: })(); michael@0: michael@0: Object.defineProperty(Object.prototype, "foo", { michael@0: get:function() { michael@0: this.bar = 42; michael@0: return 41 michael@0: } michael@0: }); michael@0: michael@0: (function() { michael@0: var s = "foo"; michael@0: assertEq(arguments[s], 41); michael@0: s = "bar"; michael@0: assertEq(arguments[s], 42); michael@0: assertEq("bar" in Object.prototype, false); michael@0: })();