Skip to content

Conversation

@caugner
Copy link
Contributor

@caugner caugner commented Apr 14, 2025

Summary

Marks Safari's implementation of top-level await as partial, because it doesn't support

multiple modules simultaneously importing a module containing a top-level await.

Test results and supporting details

This was reported in #20426 and #26075.

Upstream bug: https://bugs.webkit.org/show_bug.cgi?id=242740

The wording was taken from @shvaikalesh's WebKit PR addressing the issue (not yet merged) .

Related issues

Fixes #20426.

@caugner caugner requested a review from Elchi3 April 14, 2025 15:17
@github-actions github-actions bot added the data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Apr 14, 2025
@caugner
Copy link
Contributor Author

caugner commented Apr 14, 2025

cc @jensimmons

@github-actions github-actions bot added the size:xs [PR only] 0-6 LoC changed label Apr 14, 2025
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're still working on better guidelines for when to set partial_implementation, but I believe it makes sense here.

@Elchi3 Elchi3 merged commit ef19b96 into main Apr 29, 2025
9 checks passed
@Elchi3 Elchi3 deleted the 20426-top-level-await-in-safari branch April 29, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript size:xs [PR only] 0-6 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

javascript.operators.await - Top level await isn't properly supported in Safari

2 participants