blob: e9dea6957e704617007c440b7f22d48ac38b9a2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// |jit-test| --enable-private-fields;
load(libdir + 'asserts.js');
load(libdir + 'evalInFrame.js');
class B {
#x = 12;
x = 'his';
ef(str) {
return evalInFrame(0, str);
}
}
var b = new B();
assertEq(b.ef(`this.x`), 'his');
assertEq(b.ef(`this.#x`), 12);
|