Debian Codegraph @

js/src/jit-test/tests/basic/bug830049.js

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