blob: 7596dfe5428e034e0b4fddc94a6d3c99a0c8fa89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
let capturedPrivateAccess;
class A {
// Declare private name in outer class.
static #x = 42;
static [(
// Inner class in computed property key.
class {},
// Access to private name from outer class.
capturedPrivateAccess = () => A.#x
)];
}
assertEq(capturedPrivateAccess(), 42);
if (typeof reportCompare === 'function')
reportCompare(0, 0);
|