summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/fields/bug1552022.js
blob: 86a0f75cf58b4b66aca1e7398510faf743a23d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
load(libdir + "eqArrayHelper.js");

let expected = [];
class B {
    constructor(...args) {
        assertEqArray(expected, args);
    }
}

class C extends B {
    asdf = 2;
}

expected = [];
new C();
expected = [1];
new C(1);
expected = [1, 2];
new C(1, 2);

if (typeof reportCompare === "function")
  reportCompare(true, true);