* Fix nested classes reference private fields * Process only visible private fields when redeclaring * Comments * Skip class traversal if there are no private fields * Handle redeclared private field in computed key
19 lines
188 B
JavaScript
19 lines
188 B
JavaScript
class Foo {
|
|
#foo = 1;
|
|
#bar = 1;
|
|
|
|
test() {
|
|
class Nested {
|
|
#bar = 2;
|
|
|
|
test() {
|
|
this.#foo;
|
|
this.#bar;
|
|
}
|
|
}
|
|
|
|
this.#foo;
|
|
this.#bar;
|
|
}
|
|
}
|