Skip to content

Commit 2e77b57

Browse files
Copilotjakebailey
andcommitted
Port proposal-upsert methods to getScriptTargetFeatures (#2809)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
1 parent e7b23e5 commit 2e77b57

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

internal/checker/utilities.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,10 @@ var getFeatureMap = sync.OnceValue(func() map[string][]FeatureMapEntry {
13731373
},
13741374
"Map": {
13751375
{lib: "es2015", props: []string{"entries", "keys", "values"}},
1376+
{lib: "esnext", props: []string{
1377+
"getOrInsert",
1378+
"getOrInsertComputed",
1379+
}},
13761380
},
13771381
"MapConstructor": {
13781382
{lib: "es2024", props: []string{"groupBy"}},
@@ -1401,10 +1405,14 @@ var getFeatureMap = sync.OnceValue(func() map[string][]FeatureMapEntry {
14011405
{lib: "es2019", props: []string{"description"}},
14021406
},
14031407
"WeakMap": {
1404-
{lib: "es2015", props: []string{"entries", "keys", "values"}},
1408+
{lib: "es2015", props: []string{}},
1409+
{lib: "esnext", props: []string{
1410+
"getOrInsert",
1411+
"getOrInsertComputed",
1412+
}},
14051413
},
14061414
"WeakSet": {
1407-
{lib: "es2015", props: []string{"entries", "keys", "values"}},
1415+
{lib: "es2015", props: []string{}},
14081416
},
14091417
"String": {
14101418
{lib: "es2015", props: []string{"codePointAt", "includes", "endsWith", "normalize", "repeat", "startsWith", "anchor", "big", "blink", "bold", "fixed", "fontcolor", "fontsize", "italics", "link", "small", "strike", "sub", "sup"}},

0 commit comments

Comments
 (0)