summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug830049.js
blob: 641134a27f17f4ec0f836652fea70db5271acdab (plain)
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();