Justin Ridgewell bda759ac3d Handle private access chained on an optional chain (#11248)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-05-26 22:18:17 +02:00

15 lines
220 B
JavaScript

class Foo {
static #x = 1;
static #m = function() {};
static test() {
const o = { Foo: Foo };
return [
o?.Foo.#x,
o?.Foo.#x.toFixed,
o?.Foo.#x.toFixed(2),
o?.Foo.#m(),
];
}
}