diff --git a/internal/checker/utilities.go b/internal/checker/utilities.go index 873b1f76d23..54a1e8cacb9 100644 --- a/internal/checker/utilities.go +++ b/internal/checker/utilities.go @@ -1369,6 +1369,10 @@ var getFeatureMap = sync.OnceValue(func() map[string][]FeatureMapEntry { }, "Map": { {lib: "es2015", props: []string{"entries", "keys", "values"}}, + {lib: "esnext", props: []string{ + "getOrInsert", + "getOrInsertComputed", + }}, }, "MapConstructor": { {lib: "es2024", props: []string{"groupBy"}}, @@ -1396,10 +1400,14 @@ var getFeatureMap = sync.OnceValue(func() map[string][]FeatureMapEntry { {lib: "es2019", props: []string{"description"}}, }, "WeakMap": { - {lib: "es2015", props: []string{"entries", "keys", "values"}}, + {lib: "es2015", props: []string{}}, + {lib: "esnext", props: []string{ + "getOrInsert", + "getOrInsertComputed", + }}, }, "WeakSet": { - {lib: "es2015", props: []string{"entries", "keys", "values"}}, + {lib: "es2015", props: []string{}}, }, "String": { {lib: "es2015", props: []string{"codePointAt", "includes", "endsWith", "normalize", "repeat", "startsWith", "anchor", "big", "blink", "bold", "fixed", "fontcolor", "fontsize", "italics", "link", "small", "strike", "sub", "sup"}},