summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/PrivateName/read-private-eval.js
blob: 2c68e1c5d2068e5e65ae1b69e08f148bb15a1e36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |reftest| 

class A {
  #x = 14;
  g() {
    return eval('this.#x');
  }
}

a = new A;
assertEq(a.g(), 14);

if (typeof reportCompare === 'function') reportCompare(0, 0);