summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1819486.js
blob: 6bb3e799ea16c779d820fbf094de8754da55ab0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Base {}
class Derived extends Base {
    constructor(a) { super(a); this.a = a; }
}
function test() {
    var boundCtor = Derived.bind();
    for (var i = 0; i < 40; i++) {
        new boundCtor();
        var ex = null;
        try {
            boundCtor();
        } catch(e) {
            ex = e;
        }
        assertEq(ex instanceof TypeError, true);
    }
}
test();