1 2 3 4 5 6 7 8 9 10 11 12
// |jit-test| error: TypeError load(libdir + "immutable-prototype.js"); Object.defineProperty(Object.prototype, "name", { set(v) { throw new TypeError("hit name"); }, enumerable: true, configurable: true }); function TestCase(n) { this.name = n; } new TestCase();