blob: 36a188729ae51295c897a2984a62d660c5872103 [file] [log] [blame]
// |jit-test| error: TypeError
load(libdir + "immutable-prototype.js");
p = Proxy.create({
has: function() { return function r() { return (s += ''); } },
get: function() { throw new TypeError("hit get"); }
});
if (globalPrototypeChainIsMutable()) {
Object.prototype.__proto__ = p;
} else {
Object.defineProperty(Object.prototype, "name",
{ set(v) { throw new TypeError("hit name"); },
enumerable: true,
configurable: true });
}
function TestCase(n) {
this.name = n;
}
new TestCase();