Skip to content

Commit

Permalink
hashbang syntax is part of es2023
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jul 1, 2024
1 parent 80c6e6e commit 7c2eb2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compat-table/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ import('./kangax').then(kangax => {
js.ArbitraryModuleNamespaceNames.ES = { 2022: { force: true } }
js.RegexpMatchIndices.ES = { 2022: { force: true } }

// ES2023 features
js.Hashbang.ES = { 2023: { force: true } }

// ES2024 features
js.RegexpSetNotation.ES = { 2024: { force: true } }

Expand Down
1 change: 1 addition & 0 deletions internal/compat/js_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{
Chrome: {{start: v{74, 0, 0}}},
Deno: {{start: v{1, 0, 0}}},
Edge: {{start: v{79, 0, 0}}},
ES: {{start: v{2023, 0, 0}}},
Firefox: {{start: v{67, 0, 0}}},
Hermes: {{start: v{0, 7, 0}}},
IOS: {{start: v{13, 4, 0}}},
Expand Down

0 comments on commit 7c2eb2e

Please sign in to comment.