blob: 5a7084145034498739eb148a5f2e207d3543f486 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// |reftest| shell-option(--enable-private-fields) skip-if(!xulRuntime.shell) -- requires shell-options
class A {
#x = 10;
g() {
return this.#x;
}
};
var p = new Proxy(new A, {});
var completed = false;
try {
p.g();
completed = true;
} catch (e) {
assertEq(e instanceof TypeError, true);
}
assertEq(completed, false);
if (typeof reportCompare === 'function') reportCompare(0, 0);
|