Skip to content

Commit

Permalink
add decorators to compat table
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Apr 2, 2023
1 parent 7cd307d commit 033c5da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/compat/js_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const (
ClassStaticBlocks
ClassStaticField
ConstAndLet
Decorators
DefaultArgument
Destructuring
DynamicImport
Expand Down Expand Up @@ -126,6 +127,7 @@ var StringToJSFeature = map[string]JSFeature{
"class-static-blocks": ClassStaticBlocks,
"class-static-field": ClassStaticField,
"const-and-let": ConstAndLet,
"decorators": Decorators,
"default-argument": DefaultArgument,
"destructuring": Destructuring,
"dynamic-import": DynamicImport,
Expand Down Expand Up @@ -365,6 +367,7 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{
Opera: {{start: v{36, 0, 0}}},
Safari: {{start: v{11, 0, 0}}},
},
Decorators: {},
DefaultArgument: {
Chrome: {{start: v{49, 0, 0}}},
Deno: {{start: v{1, 0, 0}}},
Expand Down
1 change: 1 addition & 0 deletions scripts/compat-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ mergeVersions('ArbitraryModuleNamespaceNames', { es2022: true })
mergeVersions('RegexpMatchIndices', { es2022: true })
mergeVersions('RegexpSetNotation', {})
mergeVersions('ImportAssertions', {})
mergeVersions('Decorators', {})

// Manually copied from https://caniuse.com/?search=export%20*%20as
mergeVersions('ExportStarAs', {
Expand Down

0 comments on commit 033c5da

Please sign in to comment.