Debian Codegraph @

js/src/jit-test/tests/fields/private-right-side-2.js

raw
1 class B {
2 constructor(obj) { return obj; }
3 }
4
5 class C extends B {
6 #f = 1;
7 static m(obj) {
8 obj.#f = new C(obj); // ok, obj.#f brand check happens after RHS is evaluated
9 assertEq(obj.#f, obj);
10 }
11 }
12
13 C.m({});