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