@@ -27,8 +27,23 @@ var processedGlobals *ProcessedDefines
2727// these functions has any side effects. It only says something about
2828// referencing these function without calling them.
2929var knownGlobals = [][]string {
30+ // Array: Static methods
31+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array#static_methods
32+ {"Array" , "from" },
33+ {"Array" , "fromAsync" },
34+ {"Array" , "isArray" },
35+ {"Array" , "of" },
36+
37+ // RegExp: Static methods
38+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#static_methods
39+ {"RegExp" , "escape" },
40+
41+ // Map: Static methods
42+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#static_methods
43+ {"Map" , "groupBy" },
44+
3045 // Object: Static methods
31- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object#Static_methods
46+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object#static_methods
3247 {"Object" , "assign" },
3348 {"Object" , "create" },
3449 {"Object" , "defineProperties" },
@@ -52,7 +67,7 @@ var knownGlobals = [][]string{
5267 {"Object" , "values" },
5368
5469 // Object: Instance methods
55- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object#Instance_methods
70+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object#instance_methods
5671 {"Object" , "prototype" , "__defineGetter__" },
5772 {"Object" , "prototype" , "__defineSetter__" },
5873 {"Object" , "prototype" , "__lookupGetter__" },
@@ -85,7 +100,7 @@ var knownGlobals = [][]string{
85100 {"Symbol" , "unscopables" },
86101
87102 // Math: Static properties
88- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math#Static_properties
103+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math#static_properties
89104 {"Math" , "E" },
90105 {"Math" , "LN10" },
91106 {"Math" , "LN2" },
@@ -96,7 +111,7 @@ var knownGlobals = [][]string{
96111 {"Math" , "SQRT2" },
97112
98113 // Math: Static methods
99- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math#Static_methods
114+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math#static_methods
100115 {"Math" , "abs" },
101116 {"Math" , "acos" },
102117 {"Math" , "acosh" },
0 commit comments