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

Support top-level-await #3858

Open
mstoykov opened this issue Jul 18, 2024 · 1 comment
Open

Support top-level-await #3858

mstoykov opened this issue Jul 18, 2024 · 1 comment

Comments

@mstoykov
Copy link
Contributor

Feature Description

Support top-level-await

This lets await being called in the top scope of a module (not a commonjs script).

Allowing users to use k6/experimental/fs.open and others in the init context more ergonomically

Suggested Solution (optional)

This was skipped in #3456 as it required even more changes to the initial loading as it now needs to be 100% asynchronous.

Sobek already supports this, so this will likely mostly be changing signatures inside k6 in js and js/modules

Already existing or connected issues / PRs (optional)

No response

@oleiade
Copy link
Member

oleiade commented Aug 1, 2024

Mentioning it for context: #3743 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants