Ensure private UID generation takes into account all referenced private names

This commit is contained in:
Chris Hewell Garrett
2021-12-31 10:02:20 -05:00
committed by Nicolò Ribaudo
parent 3f7644823d
commit ab6d74a9cc
3 changed files with 57 additions and 69 deletions

View File

@@ -0,0 +1,10 @@
class A {
#A = 1;
static B = class B extends A {
accessor a = 2;
getA() {
return this.#A;
}
}
}

View File

@@ -0,0 +1,19 @@
class A {
#A = 1;
static B = class B extends A {
#B = 2;
get a() {
return this.#B;
}
set a(v) {
this.#B = v;
}
getA() {
return this.#A;
}
};
}