Skip to content

Commit b76b54f

Browse files
committed
run make update-compat-table
1 parent 109449e commit b76b54f

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

compat-table/package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compat-table/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"githubDependencies": {
33
"kangax/compat-table": "1a1ccdc02b8b2158ab39a6146d8a7308f43c830b",
4-
"williamkapke/node-compat-table": "087ff2079fbeb7e0a05ee11a55e1612e0ab2dc27"
4+
"williamkapke/node-compat-table": "e1d91f8e5c21dc09690f57b5656b382ae1fcdcf4"
55
},
66
"dependencies": {
7-
"@mdn/browser-compat-data": "5.4.1",
7+
"@mdn/browser-compat-data": "5.5.0",
88
"@types/caniuse-lite": "1.0.1",
99
"@types/node": "20.3.2",
10-
"caniuse-lite": "1.0.30001565"
10+
"caniuse-lite": "1.0.30001570"
1111
}
1212
}

compat-table/src/mdn.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const supportedEnvironments: Record<string, Engine> = {
1818
const jsFeatures: Partial<Record<JSFeature, string>> = {
1919
ClassStaticBlocks: 'javascript.classes.static_initialization_blocks',
2020
ExportStarAs: 'javascript.statements.export.namespace',
21-
ImportAssertions: 'javascript.statements.import.import_attribues_assert',
21+
ImportAssertions: 'javascript.statements.import.import_assertions',
2222
ImportAttributes: 'javascript.statements.import.import_attributes',
2323
ImportMeta: 'javascript.operators.import_meta',
2424
RegexpMatchIndices: 'javascript.builtins.RegExp.hasIndices',
@@ -123,6 +123,7 @@ const extractProperty = (object: any, fullKey: string): any => {
123123
for (const key of fullKey.split('.')) {
124124
object = object[key]
125125
}
126+
if (!object) throw new Error(`Failed to find "${fullKey}"`)
126127
return object
127128
}
128129

internal/compat/js_table.go

+3-6
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{
586586
},
587587
ImportAttributes: {
588588
Deno: {{start: v{1, 37, 0}}},
589-
Node: {{start: v{21, 0, 0}}},
589+
Node: {{start: v{20, 10, 0}}},
590590
},
591591
ImportMeta: {
592592
Chrome: {{start: v{64, 0, 0}}},
@@ -806,13 +806,10 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{
806806
// Note: The latest version of "Hermes" failed 8 tests including: RegExp Unicode Property Escapes: Unicode 11
807807
// Note: The latest version of "IE" failed 8 tests including: RegExp Unicode Property Escapes: Unicode 11
808808
// Note: The latest version of "IOS" failed this test: RegExp Unicode Property Escapes: Unicode 15.1
809-
// Note: The latest version of "Node" failed this test: RegExp Unicode Property Escapes: Unicode 15.1
810809
// Note: The latest version of "Rhino" failed 8 tests including: RegExp Unicode Property Escapes: Unicode 11
811810
// Note: The latest version of "Safari" failed this test: RegExp Unicode Property Escapes: Unicode 15.1
812-
Deno: {{start: v{1, 31, 0}}},
813-
Edge: {{start: v{110, 0, 0}}},
814-
ES: {{start: v{2018, 0, 0}}},
815-
Opera: {{start: v{96, 0, 0}}},
811+
ES: {{start: v{2018, 0, 0}}},
812+
Node: {{start: v{21, 3, 0}}},
816813
},
817814
RestArgument: {
818815
// Note: The latest version of "Hermes" failed this test: rest parameters: function 'length' property

0 commit comments

Comments
 (0)