-
-
Notifications
You must be signed in to change notification settings - Fork 721
fix(mangler): avoid reusing same mangled names in the outer class #14362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mangler): avoid reusing same mangled names in the outer class #14362
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #14362 will not alter performanceComparing Summary
Footnotes
|
Merge activity
|
1171718 to
278df87
Compare
…4362) ```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.
572bd52 to
73a8a62
Compare
…4362) ```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.
278df87 to
fc519c8
Compare
73a8a62 to
c257b41
Compare

was transformed to
. This is wrong because
this.#epoints 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.