summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/fields/quirks.js
blob: 4f8dfa9f75978e3d0d2ae29448f17474c6f97f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class C {
    x;;;;
    y
    ;
}

class D {
    x = 5;
    y = (this.x += 1) + 2;
}

let val = new D();
assertEq(6, val.x);
assertEq(8, val.y);

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