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

Closed
mstoykov opened this issue Jul 18, 2024 · 1 comment · Fixed by #4007
Closed

Support top-level-await #3858

mstoykov opened this issue Jul 18, 2024 · 1 comment · Fixed by #4007
Assignees

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)

@mstoykov mstoykov self-assigned this Oct 2, 2024
@mstoykov mstoykov linked a pull request Oct 23, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants