blob: 5197a9113d767c0d547ed44b8d61701f84673b40 [file] [log] [blame]
// We shouldn't do the wrong thing in the face of an evil Object.prototype
Object.prototype.get = function() {};
assertEq(({a: 1}).__lookupGetter__("a"), undefined);
delete Object.prototype.get;
Object.prototype.set = function() {};
assertEq(({a: 1}).__lookupSetter__("a"), undefined);