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

call await on toplevel in module do not work on iOS #4

Open
hakanols opened this issue Nov 25, 2024 · 1 comment
Open

call await on toplevel in module do not work on iOS #4

hakanols opened this issue Nov 25, 2024 · 1 comment

Comments

@hakanols
Copy link
Owner

With top-level await
https://blog.saeloun.com/2021/11/25/ecmascript-top-level-await/
The await used to setup random generator can be removed. This await has causes issues on iOS.
await (async function() {...})()
->
(async function() {...})()

@hakanols
Copy link
Owner Author

Removing the top level await will cause problem in the Node case.
Using Top Level await in modules on the other hand cases problem with window.onLoad in HTML.
https://hakanols.github.io/spel/AwaitTopLevel/index.html
This is on the other hand most likely a bug that will be fixed.

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

No branches or pull requests

1 participant