Debian Codegraph @

js/src/jit-test/tests/fields/quirks.js

raw
1 class C {
2 x;;;;
3 y
4 ;
5 }
6
7 class D {
8 x = 5;
9 y = (this.x += 1) + 2;
10 }
11
12 let val = new D();
13 assertEq(6, val.x);
14 assertEq(8, val.y);
15
16 if (typeof reportCompare === "function")
17 reportCompare(true, true);