Skip to content

Commit

Permalink
add Safari compat data for arbitrary module namespace names (#3520)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Dec 18, 2023
1 parent f38cbe6 commit 6c41900
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compat-table/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,9 @@ import('./kangax').then(kangax => {
// From https://bugzilla.mozilla.org/show_bug.cgi?id=1670044
js.ArbitraryModuleNamespaceNames.Firefox = { 87: { force: true } }

// This feature has been implemented in Safari but I have no idea what version
// this bug corresponds to: https://bugs.webkit.org/show_bug.cgi?id=217576
// From https://developer.apple.com/documentation/safari-release-notes/safari-14_1-release-notes#:~:text=Added%20support%20for%20Arbitrary%20module%20namespace%20identifier%20names.
js.ArbitraryModuleNamespaceNames.Safari = { '14.1': { force: true } }
js.ArbitraryModuleNamespaceNames.IOS = { '14.5': { force: true } }
}

// Import assertions (note: these were removed from the JavaScript specification and never standardized)
Expand Down
2 changes: 2 additions & 0 deletions internal/compat/js_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{
Chrome: {{start: v{90, 0, 0}}},
ES: {{start: v{2022, 0, 0}}},
Firefox: {{start: v{87, 0, 0}}},
IOS: {{start: v{14, 5, 0}}},
Node: {{start: v{16, 0, 0}}},
Safari: {{start: v{14, 1, 0}}},
},
ArraySpread: {
// Note: The latest version of "IE" failed 15 tests including: spread syntax for iterable objects: spreading non-iterables is a runtime error
Expand Down

0 comments on commit 6c41900

Please sign in to comment.