Skip to content

Safari only partially supports top-level await#26510

Merged
Elchi3 merged 1 commit into
mainfrom
20426-top-level-await-in-safari
Apr 29, 2025
Merged

Safari only partially supports top-level await#26510
Elchi3 merged 1 commit into
mainfrom
20426-top-level-await-in-safari

Conversation

@caugner

@caugner caugner commented Apr 14, 2025

Copy link
Copy Markdown
Contributor

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

caugner commented Apr 14, 2025

Copy link
Copy Markdown
Contributor Author

cc @jensimmons

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

@Elchi3 Elchi3 left a comment

Copy link
Copy Markdown
Member

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.

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