Skip to content

Commit e86abce

Browse files
committed
mark symbol static properties as side-effect free
1 parent 516796f commit e86abce

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

internal/config/globals.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,22 @@ var knownGlobals = [][]string{
7878
{"Object", "prototype", "valueOf"},
7979
{"Object", "prototype", "watch"},
8080

81+
// Symbol: Static properties
82+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#static_properties
83+
{"Symbol", "asyncIterator"},
84+
{"Symbol", "hasInstance"},
85+
{"Symbol", "isConcatSpreadable"},
86+
{"Symbol", "iterator"},
87+
{"Symbol", "match"},
88+
{"Symbol", "matchAll"},
89+
{"Symbol", "replace"},
90+
{"Symbol", "search"},
91+
{"Symbol", "species"},
92+
{"Symbol", "split"},
93+
{"Symbol", "toPrimitive"},
94+
{"Symbol", "toStringTag"},
95+
{"Symbol", "unscopables"},
96+
8197
// Math: Static properties
8298
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math#Static_properties
8399
{"Math", "E"},

0 commit comments

Comments
 (0)