1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 18:37:58 +01:00

Glean some more JS global property names from Components.interfaces.

--HG--
extra : rebase_source : 93fe15561509969709b22849086b8c7524bd4a71
This commit is contained in:
Kris Maglione
2010-09-26 06:13:25 -04:00
parent 28981bbd22
commit 0ae62e7bab

View File

@@ -592,7 +592,7 @@ const JavaScript = Module("javascript", {
* A list of properties of the global object which are not
* enumerable by any standard method.
*/
globalNames: [
globalNames: array.uniq([
"Array", "ArrayBuffer", "AttributeName", "Boolean", "Date", "Error",
"EvalError", "Function", "Infinity", "Iterator", "JSON", "Math", "NaN",
"Namespace", "Number", "Object", "QName", "RangeError",
@@ -603,9 +603,9 @@ const JavaScript = Module("javascript", {
"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)),
].concat([k.substr(6) for (k in keys(Ci)) if (/^nsIDOM/.test(k))])
.concat([k.substr(3) for (k in keys(Ci)) if (/^nsI/.test(k))])
.filter(function (k) k in window)),
/**
* Installs argument string completers for a set of functions.