Skip to content

wasm2js: Fix the names of temp vars with named reference types#6689

Merged
kripken merged 2 commits intoWebAssembly:mainfrom
kripken:wasm2js.named.type-temp
Jun 21, 2024
Merged

wasm2js: Fix the names of temp vars with named reference types#6689
kripken merged 2 commits intoWebAssembly:mainfrom
kripken:wasm2js.named.type-temp

Conversation

@kripken
Copy link
Member

@kripken kripken commented Jun 20, 2024

We were missing code to mangle such names for JS. Without that, the name
of a temp var for the type (ref $foo) would end up with (, ) in the name, which
is not valid in JS.

(See last commit for the effect of the one-line change.)

@kripken kripken requested a review from tlively June 20, 2024 23:26
@kripken kripken merged commit 0262515 into WebAssembly:main Jun 21, 2024
@kripken kripken deleted the wasm2js.named.type-temp branch June 21, 2024 15:30
@gkdn gkdn mentioned this pull request Aug 31, 2024
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.

2 participants

Comments