Skip to content
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 -sMODULARIZE + -sLEGACY_VM_SUPPORT #23693

Closed
wants to merge 1 commit into from

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 18, 2025

When we run babel in -sMODULARIZE mode the input to babel contains await calls. This code appears to be top-level code at the point at which we run babel since we have yet to perform the modularization process which wraps the output in a factory function.

Fixes: #23687

@sbc100 sbc100 enabled auto-merge (squash) February 18, 2025 17:54
When we run babel in `-sMODULARIZE` mode the input to babel contains
`await` calls.  This code appears to be top-level code at the point
at which we run babel since we have yet to perform the modularization
process which wraps the output in a factory function.

Fixes: emscripten-core#23687
@sbc100
Copy link
Collaborator Author

sbc100 commented Feb 19, 2025

Closing in favor of #23704

@sbc100 sbc100 closed this Feb 19, 2025
auto-merge was automatically disabled February 19, 2025 19:17

Pull request was closed

@sbc100 sbc100 deleted the modularise_legacy branch February 19, 2025 19:17
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.

Error: 'await' is only allowed within async functions and at the top levels of modules.
2 participants