Huáng Jùnliàng f54f1ee492
Fix: correctly transform this.#m?.(...arguments) (#12350)
* add tests on @babel/helper-optimise-call-expression

* fix: correctly optimise `a.b?.(...arguments)`

* add integration test with properties transform
2020-11-16 10:16:46 -05:00

17 lines
247 B
JavaScript

class Foo {
#m;
init() {
this.#m = (...args) => args;
}
static test() {
const f = new Foo();
f.init();
return f.#m?.(...arguments);
}
static testNull() {
const f = new Foo();
return f.#m?.(...arguments);
}
}