Skip to content

Commit e12ad43

Browse files
authored
Revert top-level await status override (#3483)
This partially reverts commit ad32aaf.
1 parent 32e8e4d commit e12ad43

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

features/top-level-await.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@ name: Top-level await
22
description: The `await` keyword, when used at the top level of a module (outside of an async function), delays parent module execution until after a promise fulfills.
33
spec: https://tc39.es/ecma262/multipage/ecmascript-language-functions-and-classes.html#sec-async-function-definitions
44
group: javascript
5-
# TODO: This feature may have regressed its status. See: https://github.com/web-platform-dx/web-features/issues/2957
6-
status:
7-
baseline: high
8-
baseline_low_date: 2021-09-20
9-
baseline_high_date: 2024-03-20
10-
support:
11-
chrome: "89"
12-
chrome_android: "89"
13-
edge: "89"
14-
firefox: "89"
15-
firefox_android: "89"
16-
safari: "15"
17-
safari_ios: "15"
5+
# TODO: https://github.com/web-platform-dx/web-features/issues/1971
6+
# Status changed: https://github.com/web-platform-dx/web-features/pull/2921/
7+
# 2025-05-02 — high → false — In Safari, simultaneous imports of a module with a top-level await fails with a ReferenceError.
8+
# References:
9+
# - https://github.com/mdn/browser-compat-data/pull/26510
10+
# - https://bugs.webkit.org/show_bug.cgi?id=242740
11+
compat_features:
12+
- javascript.operators.await.top_level

features/top-level-await.yml.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Generated from: top-level-await.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

4+
status:
5+
baseline: false
6+
support:
7+
chrome: "89"
8+
chrome_android: "89"
9+
edge: "89"
10+
firefox: "89"
11+
firefox_android: "89"
412
compat_features:
513
- javascript.operators.await.top_level

0 commit comments

Comments
 (0)