-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Replace globalThis polyfill in exportWasmSymbols. NFC #25172
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
Conversation
3e6a7c1
to
8f4370c
Compare
This will allow us to use it from other places. Split out from emscripten-core#25172
I split out the moving of the function so it can be separated from the usage with |
This will allow us to use it from other places. Split out from #25172
8f4370c
to
1d6e0d0
Compare
1d6e0d0
to
60b875a
Compare
OK, so I was wrong about the strict JS mode. Because I added a new test anyway just to confirm. I think its still probably work landing this, if only to remove the duplication here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, to land this?
The emGlobalThis
should be going away real soon, and only exists for users using -sLEGACY_BROWSER_SUPPORT
so most users won't be effected.
But converting this codepath to use emGlobalThis
it means it will automatically get cleaned up when emGlobalThis
goes away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeh, lgtm
This polyfill is code a duplicate of the
emGlobalThis
polyfill.