mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-21 14:21:26 +02:00
Add more globals gleaned from the SpiderMonkey source.
This commit is contained in:
@@ -592,12 +592,18 @@ const JavaScript = Module("javascript", {
|
||||
* A list of properties of the global object which are not
|
||||
* enumerable by any standard method.
|
||||
*/
|
||||
globalNames: ["Array", "Boolean", "Date", "Error", "EvalError",
|
||||
"Function", "Infinity", "Math", "NaN", "Number", "Object",
|
||||
"RangeError", "ReferenceError", "RegExp", "String",
|
||||
"SyntaxError", "TypeError", "URIError", "decodeURI",
|
||||
globalNames: [
|
||||
"Array", "ArrayBuffer", "AttributeName", "Boolean", "Date", "Error",
|
||||
"EvalError", "Function", "Infinity", "Iterator", "JSON", "Math", "NaN",
|
||||
"Namespace", "Number", "Object", "QName", "RangeError",
|
||||
"ReferenceError", "RegExp", "StopIteration", "String", "Error",
|
||||
"EvalError", "InternalError", "RangeError", "ReferenceError",
|
||||
"SyntaxError", "TypeError", "URIError", "decodeURI", "XML", "XMLList",
|
||||
"decodeURIComponent", "encodeURI", "encodeURIComponent", "eval",
|
||||
"isFinite", "isNaN", "parseFloat", "parseInt", "undefined"].concat(
|
||||
"isFinite", "isNaN", "isXMLName", "parseFloat", "parseInt", "undefined",
|
||||
"uneval", "Int8Array", "Uint8Array", "Int16Array", "Uint16Array",
|
||||
"Int32Array", "Uint32Array", "Float32Array", "Float64Array", "Proxy",
|
||||
].concat(
|
||||
[k.substr(6) for (k in keys(Ci)) if (/^nsIDOM/.test(k))]
|
||||
.filter(function (k) k in window)),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user