summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/class/relazify-constructor.js
blob: 2066898886eb116f3e4b575720c91b1fd889e523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class WithConstructor {
    constructor() {}
}

class DefaultConstructor {
}

class WithConstructorDerived extends DefaultConstructor {
    constructor() {
        super()
    }
}

class DefaultConstructorDerived extends DefaultConstructor {
}

relazifyFunctions();

let a = new WithConstructor;
let b = new DefaultConstructor;
let c = new WithConstructorDerived;
let d = new DefaultConstructorDerived;