Commits
Click on a commit to change the comparison rangefix(mangler): avoid reusing same mangled names in the outer class (#14362)
```js
class Outer {
#shared = 1;
#getInner() {
return class {
#method() {
return this.#shared;
}
};
}
}
```
was transformed to
```js
class Outer {
#e = 1;
#t() {
return class {
#e() {
return this.#e;
}
};
}
}
```
. This is wrong because `this.#e` points the #e method in the inner class rather than the #e in the outer class.
This PR fixes that by avoiding reusing the name used in the outer class.1 month ago
by sapphi-red