Skip to content

Commit

Permalink
run make update-compat-table
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Dec 15, 2023
1 parent 109449e commit b76b54f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
16 changes: 8 additions & 8 deletions compat-table/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions compat-table/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"githubDependencies": {
"kangax/compat-table": "1a1ccdc02b8b2158ab39a6146d8a7308f43c830b",
"williamkapke/node-compat-table": "087ff2079fbeb7e0a05ee11a55e1612e0ab2dc27"
"williamkapke/node-compat-table": "e1d91f8e5c21dc09690f57b5656b382ae1fcdcf4"
},
"dependencies": {
"@mdn/browser-compat-data": "5.4.1",
"@mdn/browser-compat-data": "5.5.0",
"@types/caniuse-lite": "1.0.1",
"@types/node": "20.3.2",
"caniuse-lite": "1.0.30001565"
"caniuse-lite": "1.0.30001570"
}
}
3 changes: 2 additions & 1 deletion compat-table/src/mdn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const supportedEnvironments: Record<string, Engine> = {
const jsFeatures: Partial<Record<JSFeature, string>> = {
ClassStaticBlocks: 'javascript.classes.static_initialization_blocks',
ExportStarAs: 'javascript.statements.export.namespace',
ImportAssertions: 'javascript.statements.import.import_attribues_assert',
ImportAssertions: 'javascript.statements.import.import_assertions',
ImportAttributes: 'javascript.statements.import.import_attributes',
ImportMeta: 'javascript.operators.import_meta',
RegexpMatchIndices: 'javascript.builtins.RegExp.hasIndices',
Expand Down Expand Up @@ -123,6 +123,7 @@ const extractProperty = (object: any, fullKey: string): any => {
for (const key of fullKey.split('.')) {
object = object[key]
}
if (!object) throw new Error(`Failed to find "${fullKey}"`)
return object
}

Expand Down
9 changes: 3 additions & 6 deletions internal/compat/js_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{
},
ImportAttributes: {
Deno: {{start: v{1, 37, 0}}},
Node: {{start: v{21, 0, 0}}},
Node: {{start: v{20, 10, 0}}},
},
ImportMeta: {
Chrome: {{start: v{64, 0, 0}}},
Expand Down Expand Up @@ -806,13 +806,10 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{
// Note: The latest version of "Hermes" failed 8 tests including: RegExp Unicode Property Escapes: Unicode 11
// Note: The latest version of "IE" failed 8 tests including: RegExp Unicode Property Escapes: Unicode 11
// Note: The latest version of "IOS" failed this test: RegExp Unicode Property Escapes: Unicode 15.1
// Note: The latest version of "Node" failed this test: RegExp Unicode Property Escapes: Unicode 15.1
// Note: The latest version of "Rhino" failed 8 tests including: RegExp Unicode Property Escapes: Unicode 11
// Note: The latest version of "Safari" failed this test: RegExp Unicode Property Escapes: Unicode 15.1
Deno: {{start: v{1, 31, 0}}},
Edge: {{start: v{110, 0, 0}}},
ES: {{start: v{2018, 0, 0}}},
Opera: {{start: v{96, 0, 0}}},
ES: {{start: v{2018, 0, 0}}},
Node: {{start: v{21, 3, 0}}},
},
RestArgument: {
// Note: The latest version of "Hermes" failed this test: rest parameters: function 'length' property
Expand Down

0 comments on commit b76b54f

Please sign in to comment.