blob: 6e8a4cda75137114f9f219869e8dbaf1453e43c4 [file] [log] [blame]
(function() {
var s = "__proto__";
assertEq(arguments[s], Object.prototype);
})();
Object.defineProperty(Object.prototype, "foo", {
get:function() {
this.bar = 42;
return 41
}
});
(function() {
var s = "foo";
assertEq(arguments[s], 41);
s = "bar";
assertEq(arguments[s], 42);
assertEq("bar" in Object.prototype, false);
})();