Skip to content

Commit

Permalink
fix #2247: add top-level-await compat for opera
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwa committed May 14, 2022
1 parent 7abb7d8 commit 7991ad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/compat/js_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{
ES: {{start: v{2022, 0, 0}}},
Firefox: {{start: v{89, 0, 0}}},
Node: {{start: v{14, 8, 0}}},
Opera: {{start: v{75, 0, 0}}},
Safari: {{start: v{15, 0, 0}}},
},
TypeofExoticObjectIsObject: {
Expand Down
5 changes: 3 additions & 2 deletions scripts/compat-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,14 @@ mergeVersions('ImportMeta', {
})

// Manually copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await
mergeVersions('TopLevelAwait', {
mergeVersions("TopLevelAwait", {
chrome89: true,
edge89: true,
firefox89: true,
node14_8: true,
opera75: true,
safari15: true,
})
});

// Manually copied from https://caniuse.com/es6-module-dynamic-import
mergeVersions('DynamicImport', {
Expand Down

0 comments on commit 7991ad0

Please sign in to comment.