Skip to content

fix missing typeof operator in __wbg_init() template in no-modules#3748

Merged
daxpedda merged 3 commits intowasm-bindgen:mainfrom
bbradshaw:main
Dec 20, 2023
Merged

fix missing typeof operator in __wbg_init() template in no-modules#3748
daxpedda merged 3 commits intowasm-bindgen:mainfrom
bbradshaw:main

Conversation

@bbradshaw
Copy link
Copy Markdown
Contributor

I noticed a TypeError originating in the generated javascript wrapper when using the --no-modules flag (I was messing around with web workers which can result in script_src actually being undefined).

It appears the check is for undefined is against the value of string_src, rather than the type.

Copy link
Copy Markdown
Member

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have messed this up before, not sure what happened here.
Thank you!

Could you add a note in the changelog?

@bbradshaw bbradshaw requested a review from daxpedda December 20, 2023 15:51
@daxpedda daxpedda merged commit cc9a219 into wasm-bindgen:main Dec 20, 2023
@bbradshaw
Copy link
Copy Markdown
Contributor Author

Cheers 🍻

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