Skip to content

Fix #12507: Scala.js: Mangle param names in closures. #12523

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

Merged

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented May 19, 2021

Instead of calling name.toString, we use the overload of
freshLocalIdent that takes a TermName, already used elsewhere,
and which correctly calls mangledString.

Instead of calling `name.toString`, we use the overload of
`freshLocalIdent` that takes a `TermName`, already used elsewhere,
and which correctly calls `mangledString`.
@sjrd sjrd requested a review from smarter May 19, 2021 08:58
@smarter smarter enabled auto-merge May 19, 2021 09:55
@smarter smarter merged commit c1eaf8c into scala:master May 19, 2021
@smarter smarter deleted the sjs-fix-name-mangling-in-closure branch May 19, 2021 10:12
@Kordyjan Kordyjan added this to the 3.0.1 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants