From 675aa64293e88d54d0d94428d475248ad5ddac3c Mon Sep 17 00:00:00 2001 From: Sameer Kolhar Date: Mon, 4 May 2020 19:27:52 +0530 Subject: [PATCH 1/5] Update .gitignore Don't track node_modules. Add the es3-docs.json to .gitignore eventually. --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 4dc96465b4..cb7dbba298 100644 --- a/.gitignore +++ b/.gitignore @@ -64,6 +64,8 @@ flycheck_*.el # directory configuration .dir-locals.el +# JSON - temporary +node_modules # End of https://www.gitignore.io/api/emacs,clojure clj-kondo @@ -75,3 +77,4 @@ clj-kondo*.snap .DS_Store !corpus/*jar lsp +run(); From fbf2fac3c5314878dd883bb1a60f76e84dd5599d Mon Sep 17 00:00:00 2001 From: Sameer Kolhar Date: Mon, 4 May 2020 19:29:05 +0530 Subject: [PATCH 2/5] Add es3.js and JSDoc parser output Using the `jsdoc` CLI we can parse the es3.js file and generate a JSON with the info that is present in the documentation of the methods in the es3.js file. --- extract/javascript/es3-docs.json | 4888 ++++++++++++++++++++++++++ extract/javascript/es3.js | 2403 +++++++++++++ extract/javascript/package-lock.json | 193 + extract/javascript/package.json | 14 + 4 files changed, 7498 insertions(+) create mode 100644 extract/javascript/es3-docs.json create mode 100644 extract/javascript/es3.js create mode 100644 extract/javascript/package-lock.json create mode 100644 extract/javascript/package.json diff --git a/extract/javascript/es3-docs.json b/extract/javascript/es3-docs.json new file mode 100644 index 0000000000..47f6545410 --- /dev/null +++ b/extract/javascript/es3-docs.json @@ -0,0 +1,4888 @@ +{ + "classes": [ + { + "name": "Symbol", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "Symbol", + "description": "", + "parameters": [ + { + "name": "opt_description", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "functions": [ + { + "name": "for", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "sym", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": [ + "symbol", + "undefined" + ], + "description": "" + } + }, + { + "name": "keyFor", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "sym", + "type": "symbol", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": [ + "string", + "undefined" + ], + "description": "" + } + } + ] + }, + { + "name": "Arguments", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "Arguments", + "description": "", + "parameters": [], + "examples": [] + }, + "properties": [ + { + "name": "callee", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "function" + ] + } + }, + { + "name": "caller", + "access": "", + "virtual": false, + "description": "Use the non-standard {@see Function.prototype.caller} property of a function\nobject instead.", + "type": { + "names": [ + "function" + ] + } + }, + { + "name": "length", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "number" + ] + } + } + ] + }, + { + "name": "Object", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "Object", + "description": "", + "parameters": [ + { + "name": "opt_value", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "functions": [ + { + "name": "constructor", + "access": "", + "virtual": false, + "description": "The constructor of the current object.", + "parameters": [], + "examples": [] + }, + { + "name": "__defineGetter__", + "access": "", + "virtual": false, + "description": "Binds an object's property to a function to be called when that property is\nlooked up.\nMozilla-only.", + "parameters": [ + { + "name": "sprop", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "fun", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "undefined", + "description": "" + } + }, + { + "name": "__defineSetter__", + "access": "", + "virtual": false, + "description": "Binds an object's property to a function to be called when an attempt is made\nto set that property.\nMozilla-only.", + "parameters": [ + { + "name": "sprop", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "fun", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "undefined", + "description": "" + } + }, + { + "name": "hasOwnProperty", + "access": "", + "virtual": false, + "description": "Returns whether the object has a property with the specified name.", + "parameters": [ + { + "name": "propertyName", + "type": "*", + "description": "Implicitly cast to a string.", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + }, + { + "name": "isPrototypeOf", + "access": "", + "virtual": false, + "description": "Returns whether an object exists in another object's prototype chain.", + "parameters": [ + { + "name": "other", + "type": "Object", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + }, + { + "name": "__lookupGetter__", + "access": "", + "virtual": false, + "description": "Return the function bound as a getter to the specified property.\nMozilla-only.", + "parameters": [ + { + "name": "sprop", + "type": "string", + "description": "a string containing the name of the property whose\ngetter should be returned", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "function", + "description": "" + } + }, + { + "name": "__lookupSetter__", + "access": "", + "virtual": false, + "description": "Return the function bound as a setter to the specified property.\nMozilla-only.", + "parameters": [ + { + "name": "sprop", + "type": "string", + "description": "a string containing the name of the property whose\n setter should be returned.", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "function", + "description": "" + } + }, + { + "name": "__noSuchMethod__", + "access": "", + "virtual": false, + "description": "Executes a function when a non-existent method is called on an object.\nMozilla-only.", + "parameters": [ + { + "name": "fun", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "*", + "description": "" + } + }, + { + "name": "propertyIsEnumerable", + "access": "", + "virtual": false, + "description": "Determine whether the specified property in an object can be enumerated by a\nfor..in loop, with the exception of properties inherited through the\nprototype chain.", + "parameters": [ + { + "name": "propertyName", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + }, + { + "name": "toLocaleString", + "access": "", + "virtual": false, + "description": "Returns a localized string representing the object.", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toSource", + "access": "", + "virtual": false, + "description": "Returns a string representing the source code of the object.\nMozilla-only.", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toString", + "access": "", + "virtual": false, + "description": "Returns a string representing the object.", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "valueOf", + "access": "", + "virtual": false, + "description": "Returns the object's `this` value.", + "parameters": [], + "examples": [], + "returns": { + "type": "*", + "description": "" + } + } + ], + "properties": [ + { + "name": "__parent__", + "access": "", + "virtual": false, + "description": "Points to an object's context. For top-level objects, this is the e.g. window.\nMozilla-only.", + "type": { + "names": [ + "Object" + ] + } + }, + { + "name": "__proto__", + "access": "", + "virtual": false, + "description": "Points to the object which was used as prototype when the object was instantiated.\nMozilla-only.\n\nWill be null on Object.prototype.", + "type": { + "names": [ + "Object" + ] + } + } + ] + }, + { + "name": "Function", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "Function", + "description": "", + "parameters": [ + { + "name": "var_args", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [] + }, + "functions": [ + { + "name": "call", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "var_args", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "*", + "description": "" + } + }, + { + "name": "apply", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "var_args", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "*", + "description": "" + } + }, + { + "name": "toString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + } + ], + "properties": [ + { + "name": "arity", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "caller", + "access": "", + "virtual": false, + "description": "Nonstandard; Mozilla and JScript only.", + "type": { + "names": [ + "function" + ] + } + }, + { + "name": "displayName", + "access": "", + "virtual": false, + "description": "Nonstandard.", + "type": { + "names": [ + "?" + ] + } + }, + { + "name": "length", + "access": "", + "virtual": false, + "description": "Expected number of arguments.", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "name", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + } + ] + }, + { + "name": "Array", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "Array", + "description": "", + "parameters": [ + { + "name": "var_args", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [] + }, + "functions": [ + { + "name": "[undefined]", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "Iterator.", + "description": "" + } + }, + { + "name": "concat", + "access": "", + "virtual": false, + "description": "Returns a new array comprised of this array joined with other array(s)\nand/or value(s).", + "parameters": [ + { + "name": "var_args", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "" + } + }, + { + "name": "join", + "access": "", + "virtual": false, + "description": "Joins all elements of an array into a string.", + "parameters": [ + { + "name": "opt_separator", + "type": "*", + "description": "Specifies a string to separate each element of the\n array. The separator is converted to a string if necessary. If omitted,\n the array elements are separated with a comma.", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "pop", + "access": "", + "virtual": false, + "description": "Removes the last element from an array and returns that element.", + "parameters": [], + "examples": [], + "returns": { + "type": "T", + "description": "" + } + }, + { + "name": "push", + "access": "", + "virtual": false, + "description": "Mutates an array by appending the given elements and returning the new\nlength of the array.", + "parameters": [ + { + "name": "var_args", + "type": [ + "T", + "undefined" + ], + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "The new length of the array." + } + }, + { + "name": "reverse", + "access": "", + "virtual": false, + "description": "Transposes the elements of an array in place: the first array element becomes the\nlast and the last becomes the first. The mutated array is also returned.", + "parameters": [], + "examples": [], + "returns": { + "type": "THIS", + "description": "A reference to the original modified array." + } + }, + { + "name": "shift", + "access": "", + "virtual": false, + "description": "Removes the first element from an array and returns that element. This\nmethod changes the length of the array.", + "parameters": [], + "examples": [], + "returns": { + "type": "T", + "description": "" + } + }, + { + "name": "slice", + "access": "", + "virtual": false, + "description": "Extracts a section of an array and returns a new array.", + "parameters": [ + { + "name": "opt_begin", + "type": "*", + "description": "Zero-based index at which to begin extraction. A\n non-number type will be auto-cast by the browser to a number.", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_end", + "type": "*", + "description": "Zero-based index at which to end extraction. slice\n extracts up to but not including end.", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "" + } + }, + { + "name": "sort", + "access": "", + "virtual": false, + "description": "Sorts the elements of an array in place.", + "parameters": [ + { + "name": "opt_compareFn", + "type": "function", + "description": "Specifies a function that\n defines the sort order.", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "" + } + }, + { + "name": "splice", + "access": "", + "virtual": false, + "description": "Changes the content of an array, adding new elements while removing old\nelements.", + "parameters": [ + { + "name": "opt_index", + "type": "*", + "description": "Index at which to start changing the array. If negative,\n will begin that many elements from the end. A non-number type will be\n auto-cast by the browser to a number.", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_howMany", + "type": "*", + "description": "An integer indicating the number of old array elements\n to remove.", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "var_args", + "type": "T", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "" + } + }, + { + "name": "toString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "unshift", + "access": "", + "virtual": false, + "description": "Adds one or more elements to the beginning of an array and returns the new\nlength of the array.", + "parameters": [ + { + "name": "var_args", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "The new length of the array" + } + }, + { + "name": "reduce", + "access": "", + "virtual": false, + "description": "Apply a function simultaneously against two values of the array (from\nleft-to-right) as to reduce it to a single value.", + "parameters": [ + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_initialValue", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "R", + "description": "" + } + }, + { + "name": "reduceRight", + "access": "", + "virtual": false, + "description": "Apply a function simultaneously against two values of the array (from\nright-to-left) as to reduce it to a single value.", + "parameters": [ + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_initialValue", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "R", + "description": "" + } + }, + { + "name": "every", + "access": "", + "virtual": false, + "description": "Available in ECMAScript 5, Mozilla 1.6+.", + "parameters": [ + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_thisobj", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + }, + { + "name": "filter", + "access": "", + "virtual": false, + "description": "Available in ECMAScript 5, Mozilla 1.6+.", + "parameters": [ + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_thisobj", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "" + } + }, + { + "name": "forEach", + "access": "", + "virtual": false, + "description": "Available in ECMAScript 5, Mozilla 1.6+.", + "parameters": [ + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_thisobj", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "undefined", + "description": "" + } + }, + { + "name": "indexOf", + "access": "", + "virtual": false, + "description": "Available in ECMAScript 5, Mozilla 1.6+.", + "parameters": [ + { + "name": "obj", + "type": "T", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_fromIndex", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "lastIndexOf", + "access": "", + "virtual": false, + "description": "Available in ECMAScript 5, Mozilla 1.6+.", + "parameters": [ + { + "name": "obj", + "type": "T", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_fromIndex", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "map", + "access": "", + "virtual": false, + "description": "Available in ECMAScript 5, Mozilla 1.6+.", + "parameters": [ + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_thisobj", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "" + } + }, + { + "name": "some", + "access": "", + "virtual": false, + "description": "Available in ECMAScript 5, Mozilla 1.6+.", + "parameters": [ + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_thisobj", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + }, + { + "name": "every", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "arr", + "type": "IArrayLike.", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_context", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + }, + { + "name": "filter", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "arr", + "type": "IArrayLike.", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_context", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "" + } + }, + { + "name": "forEach", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "arr", + "type": "IArrayLike.", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_context", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "undefined", + "description": "" + } + }, + { + "name": "indexOf", + "access": "", + "virtual": false, + "description": "Mozilla 1.6+ only.", + "parameters": [ + { + "name": "arr", + "type": "IArrayLike.", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "obj", + "type": "T", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_fromIndex", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "lastIndexOf", + "access": "", + "virtual": false, + "description": "Mozilla 1.6+ only.", + "parameters": [ + { + "name": "arr", + "type": "IArrayLike.", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "obj", + "type": "T", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_fromIndex", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "map", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "arr", + "type": "IArrayLike.", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_context", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "" + } + }, + { + "name": "some", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "arr", + "type": "IArrayLike.", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "callback", + "type": "function", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "opt_context", + "type": "S", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + }, + { + "name": "isArray", + "access": "", + "virtual": false, + "description": "Introduced in 1.8.5.", + "parameters": [ + { + "name": "arr", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + } + ], + "properties": [ + { + "name": "toSource", + "access": "", + "virtual": false, + "description": "", + "type": "" + }, + { + "name": "index", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "input", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "length", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "number" + ] + } + } + ] + }, + { + "name": "Boolean", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "Boolean", + "description": "", + "parameters": [ + { + "name": "opt_value", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "functions": [ + { + "name": "toSource", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "valueOf", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + } + ] + }, + { + "name": "Number", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "Number", + "description": "", + "parameters": [ + { + "name": "opt_value", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "functions": [ + { + "name": "toExponential", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "opt_fractionDigits", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toFixed", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "opt_digits", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toPrecision", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "opt_precision", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toString", + "access": "", + "virtual": false, + "description": "Returns a string representing the number.", + "parameters": [ + { + "name": "opt_radix", + "type": [ + "number", + "Number" + ], + "description": "An optional radix.", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + } + ] + }, + { + "name": "Date", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "Date", + "description": "", + "parameters": [ + { + "name": "opt_yr_num", + "type": "", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_mo_num", + "type": "", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_day_num", + "type": "", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_hr_num", + "type": "", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_min_num", + "type": "", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_sec_num", + "type": "", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_ms_num", + "type": "", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [] + }, + "functions": [ + { + "name": "now", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "parse", + "access": "", + "virtual": false, + "description": "Parses a string representation of a date, and returns the number\nof milliseconds since January 1, 1970, 00:00:00, local time.", + "parameters": [ + { + "name": "date", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "UTC", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "year", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "month", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_date", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_hours", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_minute", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_second", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_ms", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getDate", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getDay", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getMonth", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getFullYear", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getYear", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getHours", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getMinutes", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getSeconds", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getMilliseconds", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getTime", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getTimezoneOffset", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getUTCDate", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getUTCDay", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getUTCMonth", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getUTCFullYear", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getUTCHours", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getUTCMinutes", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getUTCSeconds", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "getUTCMilliseconds", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setDate", + "access": "", + "virtual": false, + "description": "Sets the day of the month for a specified date according to local time.", + "parameters": [ + { + "name": "dayValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setMonth", + "access": "", + "virtual": false, + "description": "Set the month for a specified date according to local time.", + "parameters": [ + { + "name": "monthValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_dayValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setFullYear", + "access": "", + "virtual": false, + "description": "Sets the full year for a specified date according to local time.", + "parameters": [ + { + "name": "yearValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_monthValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_dayValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setYear", + "access": "", + "virtual": false, + "description": "Sets the year for a specified date according to local time.", + "parameters": [ + { + "name": "yearValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setHours", + "access": "", + "virtual": false, + "description": "Sets the hours for a specified date according to local time.", + "parameters": [ + { + "name": "hoursValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_minutesValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_secondsValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_msValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setMinutes", + "access": "", + "virtual": false, + "description": "Sets the minutes for a specified date according to local time.", + "parameters": [ + { + "name": "minutesValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_secondsValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_msValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setSeconds", + "access": "", + "virtual": false, + "description": "Sets the seconds for a specified date according to local time.", + "parameters": [ + { + "name": "secondsValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_msValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setMilliseconds", + "access": "", + "virtual": false, + "description": "Sets the milliseconds for a specified date according to local time.", + "parameters": [ + { + "name": "millisecondsValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setTime", + "access": "", + "virtual": false, + "description": "Sets the Date object to the time represented by a number of milliseconds\nsince January 1, 1970, 00:00:00 UTC.", + "parameters": [ + { + "name": "timeValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setUTCDate", + "access": "", + "virtual": false, + "description": "Sets the day of the month for a specified date according to universal time.", + "parameters": [ + { + "name": "dayValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setUTCMonth", + "access": "", + "virtual": false, + "description": "Sets the month for a specified date according to universal time.", + "parameters": [ + { + "name": "monthValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_dayValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setUTCFullYear", + "access": "", + "virtual": false, + "description": "Sets the full year for a specified date according to universal time.", + "parameters": [ + { + "name": "yearValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_monthValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_dayValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setUTCHours", + "access": "", + "virtual": false, + "description": "Sets the hour for a specified date according to universal time.", + "parameters": [ + { + "name": "hoursValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_minutesValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_secondsValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_msValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setUTCMinutes", + "access": "", + "virtual": false, + "description": "Sets the minutes for a specified date according to universal time.", + "parameters": [ + { + "name": "minutesValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_secondsValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_msValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setUTCSeconds", + "access": "", + "virtual": false, + "description": "Sets the seconds for a specified date according to universal time.", + "parameters": [ + { + "name": "secondsValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_msValue", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "setUTCMilliseconds", + "access": "", + "virtual": false, + "description": "Sets the milliseconds for a specified date according to universal time.", + "parameters": [ + { + "name": "millisecondsValue", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "toSource", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toDateString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toGMTString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toTimeString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toUTCString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toLocaleDateString", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "opt_locales", + "type": [ + "string", + "Array." + ], + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_options", + "type": "Object", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toLocaleFormat", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "formatString", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toLocaleString", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "opt_locales", + "type": [ + "string", + "Array.=" + ], + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_options", + "type": "Object", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toLocaleTimeString", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "opt_locales", + "type": [ + "string", + "Array." + ], + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_options", + "type": "Object", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + } + ], + "properties": [ + { + "name": "valueOf", + "access": "", + "virtual": false, + "description": "", + "type": "" + } + ] + }, + { + "name": "String", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "String", + "description": "", + "parameters": [ + { + "name": "opt_str", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "functions": [ + { + "name": "fromCharCode", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "var_args", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "anchor", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "big", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "blink", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "bold", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "charAt", + "access": "", + "virtual": false, + "description": "Returns the specified character from a string.", + "parameters": [ + { + "name": "index", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "charCodeAt", + "access": "", + "virtual": false, + "description": "Returns a number indicating the Unicode value of the character at the given\nindex.", + "parameters": [ + { + "name": "opt_index", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "concat", + "access": "", + "virtual": false, + "description": "Combines the text of two or more strings and returns a new string.", + "parameters": [ + { + "name": "var_args", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "fixed", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "fontcolor", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "color", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "fontsize", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "size", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "indexOf", + "access": "", + "virtual": false, + "description": "Returns the index within the calling String object of the first occurrence\nof the specified value, starting the search at fromIndex, returns -1 if the\nvalue is not found.", + "parameters": [ + { + "name": "searchValue", + "type": [ + "string", + "null" + ], + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_fromIndex", + "type": [ + "number", + "null" + ], + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "italics", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "lastIndexOf", + "access": "", + "virtual": false, + "description": "Returns the index within the calling String object of the last occurrence of\nthe specified value, or -1 if not found. The calling string is searched\nbackward, starting at fromIndex.", + "parameters": [ + { + "name": "searchValue", + "type": [ + "string", + "null" + ], + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_fromIndex", + "type": [ + "number", + "null" + ], + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "link", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "hrefAttribute", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "localeCompare", + "access": "", + "virtual": false, + "description": "Returns a number indicating whether a reference string comes before or after\nor is the same as the given string in sort order.", + "parameters": [ + { + "name": "compareString", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": true + }, + { + "name": "locales", + "type": [ + "string", + "Array.=" + ], + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "options", + "type": "Object", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "match", + "access": "", + "virtual": false, + "description": "Used to retrieve the matches when matching a string against a regular\nexpression.", + "parameters": [ + { + "name": "regexp", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "This should really return an Array with a few\n special properties, but we do not have a good way to model this in\n our type system. Also see Regexp.prototype.exec." + } + }, + { + "name": "quote", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "replace", + "access": "", + "virtual": false, + "description": "Finds a match between a regular expression and a string, and replaces the\nmatched substring with a new substring.\n\nThis may have side-effects if the replacement function has side-effects.", + "parameters": [ + { + "name": "pattern", + "type": [ + "RegExp", + "string" + ], + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "replacement", + "type": [ + "string", + "function" + ], + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "search", + "access": "", + "virtual": false, + "description": "Executes the search for a match between a regular expression and this String\nobject.", + "parameters": [ + { + "name": "pattern", + "type": [ + "RegExp", + "string" + ], + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "slice", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "begin", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_end", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "small", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "split", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "opt_separator", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_limit", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "Array.", + "description": "" + } + }, + { + "name": "strike", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "sub", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "substr", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "start", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_length", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "The specified substring." + } + }, + { + "name": "substring", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "start", + "type": "number", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_end", + "type": "number", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "The specified substring." + } + }, + { + "name": "sup", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toLocaleUpperCase", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "opt_locales", + "type": [ + "string", + "Array." + ], + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toLocaleLowerCase", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "opt_locales", + "type": [ + "string", + "Array." + ], + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toLowerCase", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toUpperCase", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toSource", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "toString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + } + ], + "properties": [ + { + "name": "valueOf", + "access": "", + "virtual": false, + "description": "", + "type": "" + }, + { + "name": "length", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "number" + ] + } + } + ] + }, + { + "name": "RegExp", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "RegExp", + "description": "", + "parameters": [ + { + "name": "opt_pattern", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_flags", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "functions": [ + { + "name": "compile", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "pattern", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_flags", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "void", + "description": "" + } + }, + { + "name": "exec", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "str", + "type": "*", + "description": "The string to search.", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "RegExpResult", + "description": "" + } + }, + { + "name": "test", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "str", + "type": "*", + "description": "The string to search.", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "Whether the string was matched." + } + }, + { + "name": "toString", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + } + ], + "properties": [ + { + "name": "input", + "access": "", + "virtual": false, + "description": "The string against which the last regexp was matched.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "lastMatch", + "access": "", + "virtual": false, + "description": "The last matched characters.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "lastParen", + "access": "", + "virtual": false, + "description": "The last matched parenthesized substring, if any.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "leftContext", + "access": "", + "virtual": false, + "description": "The substring of the input up to the characters most recently matched.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "rightContext", + "access": "", + "virtual": false, + "description": "The substring of the input after the characters most recently matched.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "$1", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "$2", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "$3", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "$4", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "$5", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "$6", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "$7", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "$8", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "$9", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "global", + "access": "", + "virtual": false, + "description": "Whether to test the regular expression against all possible matches\nin a string, or only against the first.", + "type": { + "names": [ + "boolean" + ] + } + }, + { + "name": "ignoreCase", + "access": "", + "virtual": false, + "description": "Whether to ignore case while attempting a match in a string.", + "type": { + "names": [ + "boolean" + ] + } + }, + { + "name": "lastIndex", + "access": "", + "virtual": false, + "description": "The index at which to start the next match.", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "sticky", + "access": "", + "virtual": false, + "description": "Whether or not the regular expression uses lastIndex.", + "type": { + "names": [ + "boolean" + ] + } + }, + { + "name": "multiline", + "access": "", + "virtual": false, + "description": "Whether or not to search in strings across multiple lines.", + "type": { + "names": [ + "boolean" + ] + } + }, + { + "name": "source", + "access": "", + "virtual": false, + "description": "The text of the pattern.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "flags", + "access": "", + "virtual": false, + "description": "The flags the regex was created with.", + "type": { + "names": [ + "string" + ] + } + } + ] + }, + { + "name": "RegExpResult", + "description": "", + "extends": [ + "Array" + ], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "RegExpResult", + "description": "", + "parameters": [], + "examples": [] + }, + "properties": [ + { + "name": "index", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "input", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "length", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "groups", + "access": "", + "virtual": false, + "description": "Not actually part of ES3; was added in 2018.\nhttps://github.com/tc39/proposal-regexp-named-groups", + "type": { + "names": [ + "Object." + ] + } + } + ] + }, + { + "name": "Error", + "description": "", + "extends": [], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "Error", + "description": "", + "parameters": [ + { + "name": "opt_message", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_file", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_line", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "properties": [ + { + "name": "stackTraceLimit", + "access": "", + "virtual": false, + "description": "Chrome/v8 specific, altering the maximum depth of the stack trace\n(10 by default).", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "description", + "access": "", + "virtual": false, + "description": "IE-only.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "lineNumber", + "access": "", + "virtual": false, + "description": "Mozilla-only.", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "fileName", + "access": "", + "virtual": false, + "description": "Mozilla-only", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "name", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "message", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "sourceURL", + "access": "", + "virtual": false, + "description": "Doesn't seem to exist, but closure/debug.js references it.", + "type": "" + }, + { + "name": "stack", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + } + ], + "functions": [ + { + "name": "captureStackTrace", + "access": "", + "virtual": false, + "description": "Chrome/v8 specific, adds a stack trace to the error object. The optional\nconstructorOpt parameter allows you to pass in a function value. When\ncollecting the stack trace all frames above the topmost call to this\nfunction, including that call, will be left out of the stack trace.", + "parameters": [ + { + "name": "error", + "type": "Object", + "description": "The object to add the stack trace to.", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "opt_constructor", + "type": "function", + "description": "A function in the stack trace", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "undefined", + "description": "" + } + } + ] + }, + { + "name": "EvalError", + "description": "", + "extends": [ + "Error" + ], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "EvalError", + "description": "", + "parameters": [ + { + "name": "opt_message", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_file", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_line", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "properties": [ + { + "name": "description", + "access": "", + "virtual": false, + "description": "IE-only.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "lineNumber", + "access": "", + "virtual": false, + "description": "Mozilla-only.", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "fileName", + "access": "", + "virtual": false, + "description": "Mozilla-only", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "name", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "message", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "sourceURL", + "access": "", + "virtual": false, + "description": "Doesn't seem to exist, but closure/debug.js references it.", + "type": "" + }, + { + "name": "stack", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + } + ] + }, + { + "name": "RangeError", + "description": "", + "extends": [ + "Error" + ], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "RangeError", + "description": "", + "parameters": [ + { + "name": "opt_message", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_file", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_line", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "properties": [ + { + "name": "description", + "access": "", + "virtual": false, + "description": "IE-only.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "lineNumber", + "access": "", + "virtual": false, + "description": "Mozilla-only.", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "fileName", + "access": "", + "virtual": false, + "description": "Mozilla-only", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "name", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "message", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "sourceURL", + "access": "", + "virtual": false, + "description": "Doesn't seem to exist, but closure/debug.js references it.", + "type": "" + }, + { + "name": "stack", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + } + ] + }, + { + "name": "ReferenceError", + "description": "", + "extends": [ + "Error" + ], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "ReferenceError", + "description": "", + "parameters": [ + { + "name": "opt_message", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_file", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_line", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "properties": [ + { + "name": "description", + "access": "", + "virtual": false, + "description": "IE-only.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "lineNumber", + "access": "", + "virtual": false, + "description": "Mozilla-only.", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "fileName", + "access": "", + "virtual": false, + "description": "Mozilla-only", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "name", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "message", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "sourceURL", + "access": "", + "virtual": false, + "description": "Doesn't seem to exist, but closure/debug.js references it.", + "type": "" + }, + { + "name": "stack", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + } + ] + }, + { + "name": "SyntaxError", + "description": "", + "extends": [ + "Error" + ], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "SyntaxError", + "description": "", + "parameters": [ + { + "name": "opt_message", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_file", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_line", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "properties": [ + { + "name": "description", + "access": "", + "virtual": false, + "description": "IE-only.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "lineNumber", + "access": "", + "virtual": false, + "description": "Mozilla-only.", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "fileName", + "access": "", + "virtual": false, + "description": "Mozilla-only", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "name", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "message", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "sourceURL", + "access": "", + "virtual": false, + "description": "Doesn't seem to exist, but closure/debug.js references it.", + "type": "" + }, + { + "name": "stack", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + } + ] + }, + { + "name": "TypeError", + "description": "", + "extends": [ + "Error" + ], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "TypeError", + "description": "", + "parameters": [ + { + "name": "opt_message", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_file", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_line", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "properties": [ + { + "name": "description", + "access": "", + "virtual": false, + "description": "IE-only.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "lineNumber", + "access": "", + "virtual": false, + "description": "Mozilla-only.", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "fileName", + "access": "", + "virtual": false, + "description": "Mozilla-only", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "name", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "message", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "sourceURL", + "access": "", + "virtual": false, + "description": "Doesn't seem to exist, but closure/debug.js references it.", + "type": "" + }, + { + "name": "stack", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + } + ] + }, + { + "name": "URIError", + "description": "", + "extends": [ + "Error" + ], + "access": "", + "virtual": false, + "fires": "", + "constructor": { + "name": "URIError", + "description": "", + "parameters": [ + { + "name": "opt_message", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_file", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + }, + { + "name": "opt_line", + "type": "*", + "description": "", + "default": "", + "optional": true, + "nullable": "" + } + ], + "examples": [] + }, + "properties": [ + { + "name": "description", + "access": "", + "virtual": false, + "description": "IE-only.", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "lineNumber", + "access": "", + "virtual": false, + "description": "Mozilla-only.", + "type": { + "names": [ + "number" + ] + } + }, + { + "name": "fileName", + "access": "", + "virtual": false, + "description": "Mozilla-only", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "name", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "message", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + }, + { + "name": "sourceURL", + "access": "", + "virtual": false, + "description": "Doesn't seem to exist, but closure/debug.js references it.", + "type": "" + }, + { + "name": "stack", + "access": "", + "virtual": false, + "description": "", + "type": { + "names": [ + "string" + ] + } + } + ] + } + ], + "functions": [ + { + "name": "decodeURI", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "uri", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "decodeURIComponent", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "uri", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "encodeURI", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "uri", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "encodeURIComponent", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "uri", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "escape", + "access": "", + "virtual": false, + "description": "Should only be used in browsers where encode/decodeURIComponent\nare not present, as the latter handle fancy Unicode characters.", + "parameters": [ + { + "name": "str", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "unescape", + "access": "", + "virtual": false, + "description": "Should only be used in browsers where encode/decodeURIComponent\nare not present, as the latter handle fancy Unicode characters.", + "parameters": [ + { + "name": "str", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "string", + "description": "" + } + }, + { + "name": "isFinite", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "num", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + }, + { + "name": "isNaN", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "num", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "boolean", + "description": "" + } + }, + { + "name": "parseFloat", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "num", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "parseInt", + "access": "", + "virtual": false, + "description": "Parse an integer. Use of `parseInt` without `base` is strictly\nbanned in Google. If you really want to parse octal or hex based on the\nleader, then pass `undefined` as the base.", + "parameters": [ + { + "name": "num", + "type": "*", + "description": "", + "default": "", + "optional": "", + "nullable": "" + }, + { + "name": "base", + "type": [ + "number", + "undefined" + ], + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "number", + "description": "" + } + }, + { + "name": "eval", + "access": "", + "virtual": false, + "description": "", + "parameters": [ + { + "name": "code", + "type": "string", + "description": "", + "default": "", + "optional": "", + "nullable": "" + } + ], + "examples": [], + "returns": { + "type": "*", + "description": "" + } + }, + { + "name": "ActiveXObject", + "access": "", + "virtual": false, + "description": "", + "parameters": [], + "examples": [] + } + ] +} diff --git a/extract/javascript/es3.js b/extract/javascript/es3.js new file mode 100644 index 0000000000..3fc27b4173 --- /dev/null +++ b/extract/javascript/es3.js @@ -0,0 +1,2403 @@ +'use strict'; +/* + * Copyright 2008 The Closure Compiler Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @fileoverview ECMAScript 3 Built-Ins. This include common extensions so this + * is actually ES3+Reality. + * @externs + * @author stevey@google.com (Steve Yegge) + * @author nicksantos@google.com (Nick Santos) + * @author arv@google.com (Erik Arvidsson) + * @author johnlenz@google.com (John Lenz) + */ + + +// START ES6 RETROFIT CODE +// symbol, Symbol and Symbol.iterator are actually ES6 types but some +// base types require them to be part of their definition (such as Array). + + +/** + * @constructor + * @param {*=} opt_description + * @return {symbol} + */ +function Symbol(opt_description) {} + + +/** + * @const {string|undefined} + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/description + */ +Symbol.prototype.description; + + +/** + * @param {string} sym + * @return {symbol|undefined} + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for + */ +Symbol.for = function(sym) {}; + + +/** + * @param {symbol} sym + * @return {string|undefined} + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/keyFor + */ +Symbol.keyFor = function(sym) {}; + + +// Well known symbols + +/** @const {symbol} */ +Symbol.iterator; + +/** @const {symbol} */ +Symbol.toStringTag; + +/** @const {symbol} */ +Symbol.unscopables; + + +/** + * @record + * @template VALUE + */ +function IIterableResult() {}; + +/** @type {boolean} */ +IIterableResult.prototype.done; + +/** @type {VALUE} */ +IIterableResult.prototype.value; + + + +/** + * @interface + * @template VALUE + */ +function Iterable() {} + +// TODO(johnlenz): remove the suppression when the compiler understands +// "symbol" natively +/** + * @return {!Iterator} + * @suppress {externsValidation} + */ +Iterable.prototype[Symbol.iterator] = function() {}; + + + +/** + * @interface + * @template VALUE + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/The_Iterator_protocol + */ +function Iterator() {} + +/** + * @param {?=} opt_value + * @return {!IIterableResult} + */ +Iterator.prototype.next = function(opt_value) {}; + + +/** + * Use this to indicate a type is both an Iterator and an Iterable. + * @interface + * @extends {Iterator} + * @extends {Iterable} + * @template T + */ +function IteratorIterable() {} + +// END ES6 RETROFIT CODE + + +/** + * @interface + * @template KEY1, VALUE1 + */ +function IObject() {} + +/** + * @record + * @extends {IObject} + * @template VALUE2 + */ +function IArrayLike() {} + +/** @type {number} */ +IArrayLike.prototype.length; + +/** + * @constructor + * @implements {IArrayLike} + * @implements {Iterable} + * @template T + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments + */ +function Arguments() {} + +/** + * @type {Function} + * @see http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments/callee + */ +Arguments.prototype.callee; + +/** + * Use the non-standard {@see Function.prototype.caller} property of a function + * object instead. + * @type {Function} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/caller + * @deprecated + */ +Arguments.prototype.caller; + +/** + * @type {number} + * @see http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments/length + */ +Arguments.prototype.length; + +/** + * Not actually a global variable, when running in a browser environment. But + * we need it in order for the type checker to typecheck the "arguments" + * variable in a function correctly. + * + * TODO(tbreisacher): There should be a separate 'arguments' variable of type + * `Array`, in the d8 externs. + * + * @type {!Arguments} + * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments + */ +// var arguments; + +/** + * @type {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity + * @const + */ +var Infinity; + +/** + * @type {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN + * @const + */ +var NaN; + +/** + * @type {undefined} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined + * @const + */ +var undefined; + +/** + * @param {string} uri + * @return {string} + * @throws {URIError} when used wrongly. + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURI + */ +function decodeURI(uri) {} + +/** + * @param {string} uri + * @return {string} + * @throws {URIError} when used wrongly. + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent + */ +function decodeURIComponent(uri) {} + +/** + * @param {string} uri + * @return {string} + * @throws {URIError} if one attempts to encode a surrogate which is not part of + * a high-low pair. + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI + */ +function encodeURI(uri) {} + +/** + * @param {string} uri + * @return {string} + * @throws {URIError} if one attempts to encode a surrogate which is not part of + * a high-low pair. + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent + */ +function encodeURIComponent(uri) {} + +/** + * Should only be used in browsers where encode/decodeURIComponent + * are not present, as the latter handle fancy Unicode characters. + * @param {string} str + * @return {string} + * @nosideeffects + * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Predefined_Functions/escape_and_unescape_Functions + */ +function escape(str) {} + +/** + * Should only be used in browsers where encode/decodeURIComponent + * are not present, as the latter handle fancy Unicode characters. + * @param {string} str + * @return {string} + * @nosideeffects + * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Predefined_Functions/escape_and_unescape_Functions + */ +function unescape(str) {} + +/** + * @param {*} num + * @return {boolean} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite + */ +function isFinite(num) {} + +/** + * @param {*} num + * @return {boolean} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN + */ +function isNaN(num) {} + +/** + * @param {*} num + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat + */ +function parseFloat(num) {} + +/** + * Parse an integer. Use of `parseInt` without `base` is strictly + * banned in Google. If you really want to parse octal or hex based on the + * leader, then pass `undefined` as the base. + * + * @param {*} num + * @param {number|undefined} base + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt + */ +function parseInt(num, base) {} + +/** + * @param {string} code + * @return {*} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval + */ +function eval(code) {} + + + +/** + * @constructor + * @param {*=} opt_value + * @return {!Object} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object + */ +function Object(opt_value) {} + +/** + * The constructor of the current object. + * @type {Function} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor + */ +Object.prototype.constructor = function() {}; + +/** + * Binds an object's property to a function to be called when that property is + * looked up. + * Mozilla-only. + * + * @param {string} sprop + * @param {Function} fun + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineGetter + * @return {undefined} + */ +Object.prototype.__defineGetter__ = function(sprop, fun) {}; + +/** + * Binds an object's property to a function to be called when an attempt is made + * to set that property. + * Mozilla-only. + * + * @param {string} sprop + * @param {Function} fun + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineSetter + * @return {undefined} + */ +Object.prototype.__defineSetter__ = function(sprop, fun) {}; + +/** + * Returns whether the object has a property with the specified name. + * + * @param {*} propertyName Implicitly cast to a string. + * @return {boolean} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty + */ +Object.prototype.hasOwnProperty = function(propertyName) {}; + +/** + * Returns whether an object exists in another object's prototype chain. + * + * @param {Object} other + * @return {boolean} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf + */ +Object.prototype.isPrototypeOf = function(other) {}; + +/** + * Return the function bound as a getter to the specified property. + * Mozilla-only. + * + * @param {string} sprop a string containing the name of the property whose + * getter should be returned + * @return {Function} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/lookupGetter + */ +Object.prototype.__lookupGetter__ = function(sprop) {}; + +/** + * Return the function bound as a setter to the specified property. + * Mozilla-only. + * + * @param {string} sprop a string containing the name of the property whose + * setter should be returned. + * @return {Function} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/lookupSetter + */ +Object.prototype.__lookupSetter__ = function(sprop) {}; + +/** + * Executes a function when a non-existent method is called on an object. + * Mozilla-only. + * + * @param {Function} fun + * @return {*} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/noSuchMethod + */ +Object.prototype.__noSuchMethod__ = function(fun) {}; + +/** + * Points to an object's context. For top-level objects, this is the e.g. window. + * Mozilla-only. + * + * @type {Object} + * @deprecated + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/parent + */ +Object.prototype.__parent__; + +/** + * Points to the object which was used as prototype when the object was instantiated. + * Mozilla-only. + * + * Will be null on Object.prototype. + * + * @type {Object} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto + */ +Object.prototype.__proto__; + +/** + * Determine whether the specified property in an object can be enumerated by a + * for..in loop, with the exception of properties inherited through the + * prototype chain. + * + * @param {string} propertyName + * @return {boolean} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable + */ +Object.prototype.propertyIsEnumerable = function(propertyName) {}; + +/** + * Returns a localized string representing the object. + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString + */ +Object.prototype.toLocaleString = function() {}; + +/** + * Returns a string representing the source code of the object. + * Mozilla-only. + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toSource + */ +Object.prototype.toSource = function() {}; + +/** + * Returns a string representing the object. + * @this {*} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString + */ +Object.prototype.toString = function() {}; + +/** + * Returns the object's `this` value. + * @return {*} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf + */ +Object.prototype.valueOf = function() {}; + +/** + * @constructor + * @param {...*} var_args + * @throws {Error} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function + */ +function Function(var_args) {} + +/** + * @param {...*} var_args + * @return {*} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call + */ +Function.prototype.call = function(var_args) {}; + +/** + * @param {...*} var_args + * @return {*} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply + */ +Function.prototype.apply = function(var_args) {}; + +Function.prototype.arguments; + +/** + * @type {number} + * @deprecated + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity + */ +Function.prototype.arity; + +/** + * Nonstandard; Mozilla and JScript only. + * @type {Function} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller + */ +Function.prototype.caller; + +/** + * Nonstandard. + * @type {?} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName + */ +Function.prototype.displayName; + +/** + * Expected number of arguments. + * @type {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length + */ +Function.prototype.length; + +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name + */ +Function.prototype.name; + +/** + * @this {Function} + * @return {string} + * @nosideeffects + * @override + */ +Function.prototype.toString = function() {}; + + +/** + * @constructor + * @implements {IArrayLike} + * @implements {Iterable} + * @param {...*} var_args + * @return {!Array} + * @nosideeffects + * @template T + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array + */ +function Array(var_args) {} + +/** + * @return {Iterator} + * @suppress {externsValidation} + */ +Array.prototype[Symbol.iterator] = function() {}; + +// Functions: + +/** + * Returns a new array comprised of this array joined with other array(s) + * and/or value(s). + * + * @param {...*} var_args + * @return {!Array} + * @this {*} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat + */ +Array.prototype.concat = function(var_args) {}; + +/** + * Joins all elements of an array into a string. + * + * @param {*=} opt_separator Specifies a string to separate each element of the + * array. The separator is converted to a string if necessary. If omitted, + * the array elements are separated with a comma. + * @return {string} + * @this {IArrayLike|string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join + */ +Array.prototype.join = function(opt_separator) {}; + +/** + * Removes the last element from an array and returns that element. + * + * @return {T} + * @this {IArrayLike} + * @modifies {this} + * @template T + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop + */ +Array.prototype.pop = function() {}; + +// TODO(bradfordcsmith): remove "undefined" from the var_args of push +/** + * Mutates an array by appending the given elements and returning the new + * length of the array. + * + * @param {...(T|undefined)} var_args + * @return {number} The new length of the array. + * @this {IArrayLike} + * @template T + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push + */ +Array.prototype.push = function(var_args) {}; + +/** + * Transposes the elements of an array in place: the first array element becomes the + * last and the last becomes the first. The mutated array is also returned. + * + * @return {THIS} A reference to the original modified array. + * @this {THIS} + * @template THIS + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse + */ +Array.prototype.reverse = function() {}; + +/** + * Removes the first element from an array and returns that element. This + * method changes the length of the array. + * + * @this {IArrayLike} + * @modifies {this} + * @return {T} + * @template T + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift + */ +Array.prototype.shift = function() {}; + +/** + * Extracts a section of an array and returns a new array. + * + * @param {*=} opt_begin Zero-based index at which to begin extraction. A + * non-number type will be auto-cast by the browser to a number. + * @param {*=} opt_end Zero-based index at which to end extraction. slice + * extracts up to but not including end. + * @return {!Array} + * @this {IArrayLike|string} + * @template T + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice + */ +Array.prototype.slice = function(opt_begin, opt_end) {}; + +/** + * Sorts the elements of an array in place. + * + * @param {function(T,T):number=} opt_compareFn Specifies a function that + * defines the sort order. + * @this {IArrayLike} + * @template T + * @modifies {this} + * @return {!Array} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort + */ +Array.prototype.sort = function(opt_compareFn) {}; + +/** + * Changes the content of an array, adding new elements while removing old + * elements. + * + * @param {*=} opt_index Index at which to start changing the array. If negative, + * will begin that many elements from the end. A non-number type will be + * auto-cast by the browser to a number. + * @param {*=} opt_howMany An integer indicating the number of old array elements + * to remove. + * @param {...T} var_args + * @return {!Array} + * @this {IArrayLike} + * @modifies {this} + * @template T + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice + */ +Array.prototype.splice = function(opt_index, opt_howMany, var_args) {}; + +/** + * @return {string} + * @this {Object} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSource + */ +Array.prototype.toSource; + +/** + * @this {Array} + * @return {string} + * @nosideeffects + * @override + */ +Array.prototype.toString = function() {}; + +/** + * Adds one or more elements to the beginning of an array and returns the new + * length of the array. + * + * @param {...*} var_args + * @return {number} The new length of the array + * @this {IArrayLike} + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift + */ +Array.prototype.unshift = function(var_args) {}; + +/** + * Apply a function simultaneously against two values of the array (from + * left-to-right) as to reduce it to a single value. + * + * @param {?function(?, T, number, !Array) : R} callback + * @param {*=} opt_initialValue + * @return {R} + * @this {IArrayLike|string} + * @template T,R + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce + */ +Array.prototype.reduce = function(callback, opt_initialValue) {}; + +/** + * Apply a function simultaneously against two values of the array (from + * right-to-left) as to reduce it to a single value. + * + * @param {?function(?, T, number, !Array) : R} callback + * @param {*=} opt_initialValue + * @return {R} + * @this {IArrayLike|string} + * @template T,R + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight + */ +Array.prototype.reduceRight = function(callback, opt_initialValue) {}; + +/** + * Available in ECMAScript 5, Mozilla 1.6+. + * @param {?function(this:S, T, number, !Array): ?} callback + * @param {S=} opt_thisobj + * @return {boolean} + * @this {IArrayLike|string} + * @template T,S + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every + */ +Array.prototype.every = function(callback, opt_thisobj) {}; + +/** + * Available in ECMAScript 5, Mozilla 1.6+. + * @param {?function(this:S, T, number, !Array): ?} callback + * @param {S=} opt_thisobj + * @return {!Array} + * @this {IArrayLike|string} + * @template T,S + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter + */ +Array.prototype.filter = function(callback, opt_thisobj) {}; + +/** + * Available in ECMAScript 5, Mozilla 1.6+. + * @param {?function(this:S, T, number, !Array): ?} callback + * @param {S=} opt_thisobj + * @this {IArrayLike|string} + * @template T,S + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach + * @return {undefined} + */ +Array.prototype.forEach = function(callback, opt_thisobj) {}; + +/** + * Available in ECMAScript 5, Mozilla 1.6+. + * @param {T} obj + * @param {number=} opt_fromIndex + * @return {number} + * @this {IArrayLike|string} + * @nosideeffects + * @template T + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf + */ +Array.prototype.indexOf = function(obj, opt_fromIndex) {}; + +/** + * Available in ECMAScript 5, Mozilla 1.6+. + * @param {T} obj + * @param {number=} opt_fromIndex + * @return {number} + * @this {IArrayLike|string} + * @nosideeffects + * @template T + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf + */ +Array.prototype.lastIndexOf = function(obj, opt_fromIndex) {}; + +/** + * Available in ECMAScript 5, Mozilla 1.6+. + * @param {?function(this:S, T, number, !Array): R} callback + * @param {S=} opt_thisobj + * @return {!Array} + * @this {IArrayLike|string} + * @template T,S,R + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map + */ +Array.prototype.map = function(callback, opt_thisobj) {}; + +/** + * Available in ECMAScript 5, Mozilla 1.6+. + * @param {?function(this:S, T, number, !Array): ?} callback + * @param {S=} opt_thisobj + * @return {boolean} + * @this {IArrayLike|string} + * @template T,S + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some + */ +Array.prototype.some = function(callback, opt_thisobj) {}; + +/** + * @type {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/index + */ +Array.prototype.index; + +/** + * @type {?string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/input + */ +Array.prototype.input; + +/** + * @type {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length + */ +Array.prototype.length; + +/** + * @param {IArrayLike} arr + * @param {?function(this:S, T, number, ?) : ?} callback + * @param {S=} opt_context + * @return {boolean} + * @template T,S + */ +Array.every = function(arr, callback, opt_context) {}; + +/** + * @param {IArrayLike} arr + * @param {?function(this:S, T, number, ?) : ?} callback + * @param {S=} opt_context + * @return {!Array} + * @template T,S + */ +Array.filter = function(arr, callback, opt_context) {}; + +/** + * @param {IArrayLike} arr + * @param {?function(this:S, T, number, ?) : ?} callback + * @param {S=} opt_context + * @template T,S + * @return {undefined} + */ +Array.forEach = function(arr, callback, opt_context) {}; + +/** + * Mozilla 1.6+ only. + * @param {IArrayLike} arr + * @param {T} obj + * @param {number=} opt_fromIndex + * @return {number} + * @template T + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf + */ +Array.indexOf = function(arr, obj, opt_fromIndex) {}; + +/** + * Mozilla 1.6+ only. + * @param {IArrayLike} arr + * @param {T} obj + * @param {number=} opt_fromIndex + * @return {number} + * @template T + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf + */ +Array.lastIndexOf = function(arr, obj, opt_fromIndex) {}; + +/** + * @param {IArrayLike} arr + * @param {?function(this:S, T, number, !Array): R} callback + * @param {S=} opt_context + * @return {!Array} + * @template T,S,R + */ +Array.map = function(arr, callback, opt_context) {}; + +/** + * @param {IArrayLike} arr + * @param {?function(this:S, T, number, ?) : ?} callback + * @param {S=} opt_context + * @return {boolean} + * @template T,S + */ +Array.some = function(arr, callback, opt_context) {}; + +/** + * Introduced in 1.8.5. + * @param {*} arr + * @return {boolean} + * @nosideeffects + * @see http://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray + */ +Array.isArray = function(arr) {}; + +/** + * @constructor + * @param {*=} opt_value + * @return {boolean} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean + */ +function Boolean(opt_value) {} + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toSource + * @override + */ +Boolean.prototype.toSource = function() {}; + +/** + * @this {boolean|Boolean} + * @return {string} + * @nosideeffects + * @override + */ +Boolean.prototype.toString = function() {}; + +/** + * @return {boolean} + * @nosideeffects + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/valueOf + * @override + */ +Boolean.prototype.valueOf = function() {}; + +/** + * @constructor + * @param {*=} opt_value + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number + */ +function Number(opt_value) {} + +/** + * @this {Number|number} + * @param {number=} opt_fractionDigits + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toExponential + */ +Number.prototype.toExponential = function(opt_fractionDigits) {}; + +/** + * @this {Number|number} + * @param {*=} opt_digits + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed + */ +Number.prototype.toFixed = function(opt_digits) {}; + +/** + * @this {Number|number} + * @param {number=} opt_precision + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision + */ +Number.prototype.toPrecision = function(opt_precision) {}; + +/** + * Returns a string representing the number. + * @this {Number|number} + * @param {(number|Number)=} opt_radix An optional radix. + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString + * @override + */ +Number.prototype.toString = function(opt_radix) {}; + +// Properties. +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_VALUE + */ +Number.MAX_VALUE; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE + */ +Number.MIN_VALUE; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NaN + */ +Number.NaN; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY + */ +Number.NEGATIVE_INFINITY; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY + */ +Number.POSITIVE_INFINITY; + + +/** + * @const + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math + */ +var Math = {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs + */ +Math.abs = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acos + */ +Math.acos = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asin + */ +Math.asin = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan + */ +Math.atan = function(x) {}; + +/** + * @param {?} y + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2 + */ +Math.atan2 = function(y, x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil + */ +Math.ceil = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cos + */ +Math.cos = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/exp + */ +Math.exp = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor + */ +Math.floor = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log + */ +Math.log = function(x) {}; + +/** + * @param {...?} var_args + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max + */ +Math.max = function(var_args) {}; + +/** + * @param {...?} var_args + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min + */ +Math.min = function(var_args) {}; + +/** + * @param {?} x + * @param {?} y + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow + */ +Math.pow = function(x, y) {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random + */ +Math.random = function() {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round + */ +Math.round = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sin + */ +Math.sin = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sqrt + */ +Math.sqrt = function(x) {}; + +/** + * @param {?} x + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tan + */ +Math.tan = function(x) {}; + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/toSource + */ +Math.toSource = function() {}; + +// Properties: + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E + */ +Math.E; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN2 + */ +Math.LN2; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN10 + */ +Math.LN10; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG2E + */ +Math.LOG2E; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG10E + */ +Math.LOG10E; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/PI + */ +Math.PI; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT1_2 + */ +Math.SQRT1_2; + +/** + * @const {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT2 + */ +Math.SQRT2; + + +/** + * @param {?=} opt_yr_num + * @param {?=} opt_mo_num + * @param {?=} opt_day_num + * @param {?=} opt_hr_num + * @param {?=} opt_min_num + * @param {?=} opt_sec_num + * @param {?=} opt_ms_num + * @constructor + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date + */ +function Date(opt_yr_num, opt_mo_num, opt_day_num, opt_hr_num, opt_min_num, + opt_sec_num, opt_ms_num) {} + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now + */ +Date.now = function() {}; + +/** + * Parses a string representation of a date, and returns the number + * of milliseconds since January 1, 1970, 00:00:00, local time. + * @param {*} date + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse + */ +Date.parse = function(date) {}; + +/** + * @param {number} year + * @param {number} month + * @param {number=} opt_date + * @param {number=} opt_hours + * @param {number=} opt_minute + * @param {number=} opt_second + * @param {number=} opt_ms + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC + */ +Date.UTC = function(year, month, + opt_date, opt_hours, opt_minute, opt_second, opt_ms) {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate + */ +Date.prototype.getDate = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDay + */ +Date.prototype.getDay = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMonth + */ +Date.prototype.getMonth = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear + */ +Date.prototype.getFullYear = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getYear + */ +Date.prototype.getYear = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getHours + */ +Date.prototype.getHours = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMinutes + */ +Date.prototype.getMinutes = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getSeconds + */ +Date.prototype.getSeconds = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds + */ +Date.prototype.getMilliseconds = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime + */ +Date.prototype.getTime = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset + */ +Date.prototype.getTimezoneOffset = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDate + */ +Date.prototype.getUTCDate = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDay + */ +Date.prototype.getUTCDay = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMonth + */ +Date.prototype.getUTCMonth = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCFullYear + */ +Date.prototype.getUTCFullYear = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCHours + */ +Date.prototype.getUTCHours = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMinutes + */ +Date.prototype.getUTCMinutes = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCSeconds + */ +Date.prototype.getUTCSeconds = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds + */ +Date.prototype.getUTCMilliseconds = function() {}; + +/** + * Sets the day of the month for a specified date according to local time. + * + * @param {number} dayValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setDate + * @return {number} + */ +Date.prototype.setDate = function(dayValue) {}; + +/** + * Set the month for a specified date according to local time. + * + * @param {number} monthValue + * @param {number=} opt_dayValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMonth + * @return {number} + */ +Date.prototype.setMonth = function(monthValue, opt_dayValue) {}; + +/** + * Sets the full year for a specified date according to local time. + * + * @param {number} yearValue + * @param {number=} opt_monthValue + * @param {number=} opt_dayValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setFullYear + * @return {number} + */ +Date.prototype.setFullYear = + function(yearValue, opt_monthValue, opt_dayValue) {}; + +/** + * Sets the year for a specified date according to local time. + * + * @param {number} yearValue + * @deprecated + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear + * @return {number} + */ +Date.prototype.setYear = function(yearValue) {}; + +/** + * Sets the hours for a specified date according to local time. + * + * @param {number} hoursValue + * @param {number=} opt_minutesValue + * @param {number=} opt_secondsValue + * @param {number=} opt_msValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours + * @return {number} + */ +Date.prototype.setHours = function(hoursValue, opt_minutesValue, + opt_secondsValue, opt_msValue) {}; + +/** + * Sets the minutes for a specified date according to local time. + * + * @param {number} minutesValue + * @param {number=} opt_secondsValue + * @param {number=} opt_msValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMinutes + * @return {number} + */ +Date.prototype.setMinutes = + function(minutesValue, opt_secondsValue, opt_msValue) {}; + +/** + * Sets the seconds for a specified date according to local time. + * + * @param {number} secondsValue + * @param {number=} opt_msValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setSeconds + * @return {number} + */ +Date.prototype.setSeconds = function(secondsValue, opt_msValue) {}; + +/** + * Sets the milliseconds for a specified date according to local time. + * + * @param {number} millisecondsValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds + * @return {number} + */ +Date.prototype.setMilliseconds = function(millisecondsValue) {}; + +/** + * Sets the Date object to the time represented by a number of milliseconds + * since January 1, 1970, 00:00:00 UTC. + * + * @param {number} timeValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setTime + * @return {number} + */ +Date.prototype.setTime = function(timeValue) {}; + +/** + * Sets the day of the month for a specified date according to universal time. + * + * @param {number} dayValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCDate + * @return {number} + */ +Date.prototype.setUTCDate = function(dayValue) {}; + +/** + * Sets the month for a specified date according to universal time. + * + * @param {number} monthValue + * @param {number=} opt_dayValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth + * @return {number} + */ +Date.prototype.setUTCMonth = function(monthValue, opt_dayValue) {}; + +/** + * Sets the full year for a specified date according to universal time. + * + * @param {number} yearValue + * @param {number=} opt_monthValue + * @param {number=} opt_dayValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear + * @return {number} + */ +Date.prototype.setUTCFullYear = function(yearValue, opt_monthValue, + opt_dayValue) {}; + +/** + * Sets the hour for a specified date according to universal time. + * + * @param {number} hoursValue + * @param {number=} opt_minutesValue + * @param {number=} opt_secondsValue + * @param {number=} opt_msValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCHours + * @return {number} + */ +Date.prototype.setUTCHours = function(hoursValue, opt_minutesValue, + opt_secondsValue, opt_msValue) {}; + +/** + * Sets the minutes for a specified date according to universal time. + * + * @param {number} minutesValue + * @param {number=} opt_secondsValue + * @param {number=} opt_msValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes + * @return {number} + */ +Date.prototype.setUTCMinutes = function(minutesValue, opt_secondsValue, + opt_msValue) {}; + + +/** + * Sets the seconds for a specified date according to universal time. + * + * @param {number} secondsValue + * @param {number=} opt_msValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCSeconds + * @return {number} + */ +Date.prototype.setUTCSeconds = function(secondsValue, opt_msValue) {}; + +/** + * Sets the milliseconds for a specified date according to universal time. + * + * @param {number} millisecondsValue + * @modifies {this} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds + * @return {number} + */ +Date.prototype.setUTCMilliseconds = function(millisecondsValue) {}; + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toSource + * @override + */ +Date.prototype.toSource = function() {}; + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toDateString + */ +Date.prototype.toDateString = function() {}; + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toGMTString + */ +Date.prototype.toGMTString = function() {}; + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toTimeString + */ +Date.prototype.toTimeString = function() {}; + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString + */ +Date.prototype.toUTCString = function() {}; + +/** + * @param {(string|Array)=} opt_locales + * @param {Object=} opt_options + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString + */ +Date.prototype.toLocaleDateString = function(opt_locales, opt_options) {}; + +/** + * @param {string} formatString + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat + */ +Date.prototype.toLocaleFormat = function(formatString) {}; + +/** + * @param {string|Array=} opt_locales + * @param {Object=} opt_options + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString + * @see http://www.ecma-international.org/ecma-402/1.0/#sec-13.3.1 + * @override + */ +Date.prototype.toLocaleString = function(opt_locales, opt_options) {}; + +/** + * @param {(string|Array)=} opt_locales + * @param {Object=} opt_options + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString + */ +Date.prototype.toLocaleTimeString = function(opt_locales, opt_options) {}; + +/** + * @this {Date} + * @return {string} + * @nosideeffects + * @override + */ +Date.prototype.toString = function() {}; + +/** + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/valueOf + */ +Date.prototype.valueOf; + +/** + * @constructor + * @implements {Iterable} + * @param {*=} opt_str + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String + */ +function String(opt_str) {} + +/** + * @param {...number} var_args + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode + */ +String.fromCharCode = function(var_args) {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/anchor + */ +String.prototype.anchor = function() {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/big + */ +String.prototype.big = function() {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/blink + */ +String.prototype.blink = function() {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/bold + */ +String.prototype.bold = function() {}; + +/** + * Returns the specified character from a string. + * + * @this {String|string} + * @param {number} index + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt + */ +String.prototype.charAt = function(index) {}; + +/** + * Returns a number indicating the Unicode value of the character at the given + * index. + * + * @this {String|string} + * @param {number=} opt_index + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt + */ +String.prototype.charCodeAt = function(opt_index) {}; + +/** + * Combines the text of two or more strings and returns a new string. + * + * @this {String|string} + * @param {...*} var_args + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat + */ +String.prototype.concat = function(var_args) {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fixed + */ +String.prototype.fixed = function() {}; + +/** + * @this {String|string} + * @param {string} color + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fontcolor + */ +String.prototype.fontcolor = function(color) {}; + +/** + * @this {String|string} + * @param {number} size + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fontsize + */ +String.prototype.fontsize = function(size) {}; + +/** + * Returns the index within the calling String object of the first occurrence + * of the specified value, starting the search at fromIndex, returns -1 if the + * value is not found. + * + * @this {String|string} + * @param {string|null} searchValue + * @param {(number|null)=} opt_fromIndex + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf + */ +String.prototype.indexOf = function(searchValue, opt_fromIndex) {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/italics + */ +String.prototype.italics = function() {}; + +/** + * Returns the index within the calling String object of the last occurrence of + * the specified value, or -1 if not found. The calling string is searched + * backward, starting at fromIndex. + * + * @this {String|string} + * @param {string|null} searchValue + * @param {(number|null)=} opt_fromIndex + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf + */ +String.prototype.lastIndexOf = function(searchValue, opt_fromIndex) {}; + +/** + * @this {String|string} + * @param {string} hrefAttribute + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/link + */ +String.prototype.link = function(hrefAttribute) {}; + +/** + * Returns a number indicating whether a reference string comes before or after + * or is the same as the given string in sort order. + * + * @this {*} + * @param {?string} compareString + * @param {string|Array=} locales + * @param {Object=} options + * @return {number} + * @nosideeffects + * @see http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Objects/String/localeCompare + * @see http://www.ecma-international.org/ecma-402/1.0/#sec-13.1.1 + */ +String.prototype.localeCompare = function(compareString, locales, options) {}; + +/** + * Used to retrieve the matches when matching a string against a regular + * expression. + * + * @this {String|string} + * @param {*} regexp + * @return {Array} This should really return an Array with a few + * special properties, but we do not have a good way to model this in + * our type system. Also see Regexp.prototype.exec. + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match + */ +String.prototype.match = function(regexp) {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/quote + */ +String.prototype.quote = function() {}; + +/** + * Finds a match between a regular expression and a string, and replaces the + * matched substring with a new substring. + * + * This may have side-effects if the replacement function has side-effects. + * + * @this {String|string} + * @param {RegExp|string} pattern + * @param {string|Function} replacement + * @return {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace + */ +String.prototype.replace = function(pattern, replacement) {}; + +/** + * Executes the search for a match between a regular expression and this String + * object. + * + * @this {String|string} + * @param {RegExp|string} pattern + * @return {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/search + */ +String.prototype.search = function(pattern) {}; + +/** + * @this {String|string} + * @param {number} begin + * @param {number=} opt_end + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice + */ +String.prototype.slice = function(begin, opt_end) {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/small + */ +String.prototype.small = function() {}; + +/** + * @this {String|string} + * @param {*=} opt_separator + * @param {number=} opt_limit + * @return {!Array} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split + */ +String.prototype.split = function(opt_separator, opt_limit) {}; + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/strike + */ +String.prototype.strike = function() {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/sub + */ +String.prototype.sub = function() {}; + +/** + * @this {String|string} + * @param {number} start + * @param {number=} opt_length + * @return {string} The specified substring. + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr + */ +String.prototype.substr = function(start, opt_length) {}; + +/** + * @this {String|string} + * @param {number} start + * @param {number=} opt_end + * @return {string} The specified substring. + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring + */ +String.prototype.substring = function(start, opt_end) {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/sup + */ +String.prototype.sup = function() {}; + +/** + * @this {String|string} + * @param {(string|Array)=} opt_locales + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase + */ +String.prototype.toLocaleUpperCase = function(opt_locales) {}; + +/** + * @this {String|string} + * @param {(string|Array)=} opt_locales + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase + */ +String.prototype.toLocaleLowerCase = function(opt_locales) {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase + */ +String.prototype.toLowerCase = function() {}; + +/** + * @this {String|string} + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase + */ +String.prototype.toUpperCase = function() {}; + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toSource + * @override + */ +String.prototype.toSource = function() {}; + +/** + * @this {string|String} + * @return {string} + * @nosideeffects + * @override + */ +String.prototype.toString = function() {}; + +/** + * @return {string} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf + */ +String.prototype.valueOf; + +/** + * @type {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length + */ +String.prototype.length; + +/** + * @constructor + * @param {*=} opt_pattern + * @param {*=} opt_flags + * @return {!RegExp} + * @throws {SyntaxError} if opt_pattern is an invalid pattern. + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +function RegExp(opt_pattern, opt_flags) {} + +/** + * @param {*} pattern + * @param {*=} opt_flags + * @return {void} + * @modifies {this} + * @deprecated + * @see http://msdn.microsoft.com/en-us/library/x9cswe0z(v=VS.85).aspx + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/compile + */ +RegExp.prototype.compile = function(pattern, opt_flags) {}; + +/** + * @param {*} str The string to search. + * @return {?RegExpResult} + * @see http://msdn.microsoft.com/en-us/library/z908hy33(VS.85).aspx + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec + */ +RegExp.prototype.exec = function(str) {}; + +/** + * @param {*} str The string to search. + * @return {boolean} Whether the string was matched. + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test + */ +RegExp.prototype.test = function(str) {}; + +/** + * @this {RegExp} + * @return {string} + * @nosideeffects + * @override + */ +RegExp.prototype.toString = function() {}; + +/** + * @constructor + * @extends {Array} + */ +var RegExpResult = function() {}; + + +/** @type {number} */ +RegExpResult.prototype.index; + + +/** @type {string} */ +RegExpResult.prototype.input; + + +/** @type {number} */ +RegExpResult.prototype.length; + + +/** + * Not actually part of ES3; was added in 2018. + * https://github.com/tc39/proposal-regexp-named-groups + * + * @type {!Object} + */ +RegExpResult.prototype.groups; + + +// Constructor properties: + +/** + * The string against which the last regexp was matched. + * @type {string} + * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_input.html + */ +RegExp.input; + +/** + * The last matched characters. + * @type {string} + * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_lastMatch.html + */ +RegExp.lastMatch; + +/** + * The last matched parenthesized substring, if any. + * @type {string} + * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_lastParen.html + */ +RegExp.lastParen; + +/** + * The substring of the input up to the characters most recently matched. + * @type {string} + * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_leftContext.html + */ +RegExp.leftContext; + +/** + * The substring of the input after the characters most recently matched. + * @type {string} + * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_rightContext.html + */ +RegExp.rightContext; + +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +RegExp.$1; +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +RegExp.$2; +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +RegExp.$3; +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +RegExp.$4; +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +RegExp.$5; +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +RegExp.$6; +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +RegExp.$7; +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +RegExp.$8; +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp + */ +RegExp.$9; + +// Prototype properties: + +/** + * Whether to test the regular expression against all possible matches + * in a string, or only against the first. + * @type {boolean} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global + */ +RegExp.prototype.global; + +/** + * Whether to ignore case while attempting a match in a string. + * @type {boolean} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/ignoreCase + */ +RegExp.prototype.ignoreCase; + +/** + * The index at which to start the next match. + * @type {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex + */ +RegExp.prototype.lastIndex; + +/** + * Whether or not the regular expression uses lastIndex. + * @type {boolean} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky + */ +RegExp.prototype.sticky; + +/** + * Whether or not to search in strings across multiple lines. + * @type {boolean} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline + */ +RegExp.prototype.multiline; + +/** + * The text of the pattern. + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source + */ +RegExp.prototype.source; + +/** + * The flags the regex was created with. + * @type {string} + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags + */ +RegExp.prototype.flags; + +/** + * @constructor + * @param {*=} opt_message + * @param {*=} opt_file + * @param {*=} opt_line + * @return {!Error} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error + */ +function Error(opt_message, opt_file, opt_line) {} + + +/** + * Chrome/v8 specific, altering the maximum depth of the stack trace + * (10 by default). + * @type {number} + * @see http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi + */ +Error.stackTraceLimit; + + +/** + * Chrome/v8 specific, adds a stack trace to the error object. The optional + * constructorOpt parameter allows you to pass in a function value. When + * collecting the stack trace all frames above the topmost call to this + * function, including that call, will be left out of the stack trace. + * @param {Object} error The object to add the stack trace to. + * @param {Function=} opt_constructor A function in the stack trace + * @see http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi + * @return {undefined} + */ +Error.captureStackTrace = function(error, opt_constructor){}; + + +/** + * IE-only. + * @type {string} + * @see http://msdn.microsoft.com/en-us/library/2w6a45b5.aspx + */ +Error.prototype.description; + + +/** + * Mozilla-only. + * @type {number} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/lineNumber + */ +Error.prototype.lineNumber; + +/** + * Mozilla-only + * @type {string} + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/fileName + */ +Error.prototype.fileName; + +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name + */ +Error.prototype.name; + +/** + * @type {string} + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/message + */ +Error.prototype.message; + +/** + * Doesn't seem to exist, but closure/debug.js references it. + */ +Error.prototype.sourceURL; + +/** @type {string} */ +Error.prototype.stack; + + +/** + * @constructor + * @extends {Error} + * @param {*=} opt_message + * @param {*=} opt_file + * @param {*=} opt_line + * @return {!EvalError} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError + */ +function EvalError(opt_message, opt_file, opt_line) {} + +/** + * @constructor + * @extends {Error} + * @param {*=} opt_message + * @param {*=} opt_file + * @param {*=} opt_line + * @return {!RangeError} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError + */ +function RangeError(opt_message, opt_file, opt_line) {} + +/** + * @constructor + * @extends {Error} + * @param {*=} opt_message + * @param {*=} opt_file + * @param {*=} opt_line + * @return {!ReferenceError} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError + */ +function ReferenceError(opt_message, opt_file, opt_line) {} + +/** + * @constructor + * @extends {Error} + * @param {*=} opt_message + * @param {*=} opt_file + * @param {*=} opt_line + * @return {!SyntaxError} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError + */ +function SyntaxError(opt_message, opt_file, opt_line) {} + +/** + * @constructor + * @extends {Error} + * @param {*=} opt_message + * @param {*=} opt_file + * @param {*=} opt_line + * @return {!TypeError} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError + */ +function TypeError(opt_message, opt_file, opt_line) {} + +/** + * @constructor + * @extends {Error} + * @param {*=} opt_message + * @param {*=} opt_file + * @param {*=} opt_line + * @return {!URIError} + * @nosideeffects + * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError + */ +function URIError(opt_message, opt_file, opt_line) {} + + +// JScript extensions. +// @see http://msdn.microsoft.com/en-us/library/894hfyb4(VS.80).aspx + +/** + * @see http://msdn.microsoft.com/en-us/library/7sw4ddf8.aspx + * @type {function(new:?, string, string=)} + */ +function ActiveXObject(progId, opt_location) {} diff --git a/extract/javascript/package-lock.json b/extract/javascript/package-lock.json new file mode 100644 index 0000000000..bc50c12db9 --- /dev/null +++ b/extract/javascript/package-lock.json @@ -0,0 +1,193 @@ +{ + "name": "clj-kondo-js-arity-info", + "version": "0.0.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/parser": { + "version": "7.9.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.6.tgz", + "integrity": "sha512-AoeIEJn8vt+d/6+PXDRPaksYhnlbMIiejioBZvvMQsOjW/JYK6k/0dKnvvP3EhK5GfMBWDPtrxRtegWdAcdq9Q==", + "dev": true + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true + }, + "catharsis": { + "version": "0.8.11", + "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.8.11.tgz", + "integrity": "sha512-a+xUyMV7hD1BrDQA/3iPV7oc+6W26BgVJO05PGEoatMyIuPScQKsde6i3YorWX1qs+AZjnJ18NqdKoCtKiNh1g==", + "dev": true, + "requires": { + "lodash": "^4.17.14" + } + }, + "entities": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", + "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", + "dev": true + }, + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + }, + "graceful-fs": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", + "dev": true + }, + "js2xmlparser": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.1.tgz", + "integrity": "sha512-KrPTolcw6RocpYjdC7pL7v62e55q7qOMHvLX1UCLc5AAS8qeJ6nukarEJAF2KL2PZxlbGueEbINqZR2bDe/gUw==", + "dev": true, + "requires": { + "xmlcreate": "^2.0.3" + } + }, + "jsdoc": { + "version": "3.6.4", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.4.tgz", + "integrity": "sha512-3G9d37VHv7MFdheviDCjUfQoIjdv4TC5zTTf5G9VODLtOnVS6La1eoYBDlbWfsRT3/Xo+j2MIqki2EV12BZfwA==", + "dev": true, + "requires": { + "@babel/parser": "^7.9.4", + "bluebird": "^3.7.2", + "catharsis": "^0.8.11", + "escape-string-regexp": "^2.0.0", + "js2xmlparser": "^4.0.1", + "klaw": "^3.0.0", + "markdown-it": "^10.0.0", + "markdown-it-anchor": "^5.2.7", + "marked": "^0.8.2", + "mkdirp": "^1.0.4", + "requizzle": "^0.2.3", + "strip-json-comments": "^3.1.0", + "taffydb": "2.6.2", + "underscore": "~1.10.2" + } + }, + "klaw": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", + "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.9" + } + }, + "linkify-it": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.2.0.tgz", + "integrity": "sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==", + "dev": true, + "requires": { + "uc.micro": "^1.0.1" + } + }, + "lodash": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true + }, + "markdown-it": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-10.0.0.tgz", + "integrity": "sha512-YWOP1j7UbDNz+TumYP1kpwnP0aEa711cJjrAQrzd0UXlbJfc5aAq0F/PZHjiioqDC1NKgvIMX+o+9Bk7yuM2dg==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "entities": "~2.0.0", + "linkify-it": "^2.0.0", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + } + }, + "markdown-it-anchor": { + "version": "5.2.7", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-5.2.7.tgz", + "integrity": "sha512-REFmIaSS6szaD1bye80DMbp7ePwsPNvLTR5HunsUcZ0SG0rWJQ+Pz24R4UlTKtjKBPhxo0v0tOBDYjZQQknW8Q==", + "dev": true + }, + "marked": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/marked/-/marked-0.8.2.tgz", + "integrity": "sha512-EGwzEeCcLniFX51DhTpmTom+dSA/MG/OBUDjnWtHbEnjAH180VzUeAw+oE4+Zv+CoYBWyRlYOTR0N8SO9R1PVw==", + "dev": true + }, + "mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=", + "dev": true + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "requizzle": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.3.tgz", + "integrity": "sha512-YanoyJjykPxGHii0fZP0uUPEXpvqfBDxWV7s6GKAiiOsiqhX6vHNyW3Qzdmqp/iq/ExbhaGbVrjB4ruEVSM4GQ==", + "dev": true, + "requires": { + "lodash": "^4.17.14" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "strip-json-comments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz", + "integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==", + "dev": true + }, + "taffydb": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.6.2.tgz", + "integrity": "sha1-fLy2S1oUG2ou/CxdLGe04VCyomg=", + "dev": true + }, + "uc.micro": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", + "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", + "dev": true + }, + "underscore": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.10.2.tgz", + "integrity": "sha512-N4P+Q/BuyuEKFJ43B9gYuOj4TQUHXX+j2FqguVOpjkssLUUrnJofCcBccJSCoeturDoZU6GorDTHSvUDlSQbTg==", + "dev": true + }, + "xmlcreate": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.3.tgz", + "integrity": "sha512-HgS+X6zAztGa9zIK3Y3LXuJes33Lz9x+YyTxgrkIdabu2vqcGOWwdfCpf1hWLRrd553wd4QCDf6BBO6FfdsRiQ==", + "dev": true + } + } +} diff --git a/extract/javascript/package.json b/extract/javascript/package.json new file mode 100644 index 0000000000..f2c33fc9c5 --- /dev/null +++ b/extract/javascript/package.json @@ -0,0 +1,14 @@ +{ + "name": "clj-kondo-js-arity-info", + "version": "0.0.1", + "description": "", + "main": "index.js", + "scripts": { + "docs": "jsdoc es3.js -t templates/haruki -d console > es3-docs.json" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "jsdoc": "^3.6.4" + } +} From 23b7a89cac4d844541c09bb09fbf99fb712446f9 Mon Sep 17 00:00:00 2001 From: Sameer Kolhar Date: Fri, 29 May 2020 23:46:10 +0530 Subject: [PATCH 3/5] fix .gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index cb7dbba298..a5b4ca4115 100644 --- a/.gitignore +++ b/.gitignore @@ -77,4 +77,3 @@ clj-kondo*.snap .DS_Store !corpus/*jar lsp -run(); From 10238e99b14c08abe102f38b09f637257d255d00 Mon Sep 17 00:00:00 2001 From: Sameer Kolhar Date: Fri, 29 May 2020 23:46:56 +0530 Subject: [PATCH 4/5] delete unnecessary files --- extract/javascript/es3-docs.json | 4888 -------------------------- extract/javascript/es3.js | 2403 ------------- extract/javascript/package-lock.json | 193 - 3 files changed, 7484 deletions(-) delete mode 100644 extract/javascript/es3-docs.json delete mode 100644 extract/javascript/es3.js delete mode 100644 extract/javascript/package-lock.json diff --git a/extract/javascript/es3-docs.json b/extract/javascript/es3-docs.json deleted file mode 100644 index 47f6545410..0000000000 --- a/extract/javascript/es3-docs.json +++ /dev/null @@ -1,4888 +0,0 @@ -{ - "classes": [ - { - "name": "Symbol", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "Symbol", - "description": "", - "parameters": [ - { - "name": "opt_description", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "functions": [ - { - "name": "for", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "sym", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": [ - "symbol", - "undefined" - ], - "description": "" - } - }, - { - "name": "keyFor", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "sym", - "type": "symbol", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": [ - "string", - "undefined" - ], - "description": "" - } - } - ] - }, - { - "name": "Arguments", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "Arguments", - "description": "", - "parameters": [], - "examples": [] - }, - "properties": [ - { - "name": "callee", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "function" - ] - } - }, - { - "name": "caller", - "access": "", - "virtual": false, - "description": "Use the non-standard {@see Function.prototype.caller} property of a function\nobject instead.", - "type": { - "names": [ - "function" - ] - } - }, - { - "name": "length", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "number" - ] - } - } - ] - }, - { - "name": "Object", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "Object", - "description": "", - "parameters": [ - { - "name": "opt_value", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "functions": [ - { - "name": "constructor", - "access": "", - "virtual": false, - "description": "The constructor of the current object.", - "parameters": [], - "examples": [] - }, - { - "name": "__defineGetter__", - "access": "", - "virtual": false, - "description": "Binds an object's property to a function to be called when that property is\nlooked up.\nMozilla-only.", - "parameters": [ - { - "name": "sprop", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "fun", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "undefined", - "description": "" - } - }, - { - "name": "__defineSetter__", - "access": "", - "virtual": false, - "description": "Binds an object's property to a function to be called when an attempt is made\nto set that property.\nMozilla-only.", - "parameters": [ - { - "name": "sprop", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "fun", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "undefined", - "description": "" - } - }, - { - "name": "hasOwnProperty", - "access": "", - "virtual": false, - "description": "Returns whether the object has a property with the specified name.", - "parameters": [ - { - "name": "propertyName", - "type": "*", - "description": "Implicitly cast to a string.", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - }, - { - "name": "isPrototypeOf", - "access": "", - "virtual": false, - "description": "Returns whether an object exists in another object's prototype chain.", - "parameters": [ - { - "name": "other", - "type": "Object", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - }, - { - "name": "__lookupGetter__", - "access": "", - "virtual": false, - "description": "Return the function bound as a getter to the specified property.\nMozilla-only.", - "parameters": [ - { - "name": "sprop", - "type": "string", - "description": "a string containing the name of the property whose\ngetter should be returned", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "function", - "description": "" - } - }, - { - "name": "__lookupSetter__", - "access": "", - "virtual": false, - "description": "Return the function bound as a setter to the specified property.\nMozilla-only.", - "parameters": [ - { - "name": "sprop", - "type": "string", - "description": "a string containing the name of the property whose\n setter should be returned.", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "function", - "description": "" - } - }, - { - "name": "__noSuchMethod__", - "access": "", - "virtual": false, - "description": "Executes a function when a non-existent method is called on an object.\nMozilla-only.", - "parameters": [ - { - "name": "fun", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "*", - "description": "" - } - }, - { - "name": "propertyIsEnumerable", - "access": "", - "virtual": false, - "description": "Determine whether the specified property in an object can be enumerated by a\nfor..in loop, with the exception of properties inherited through the\nprototype chain.", - "parameters": [ - { - "name": "propertyName", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - }, - { - "name": "toLocaleString", - "access": "", - "virtual": false, - "description": "Returns a localized string representing the object.", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toSource", - "access": "", - "virtual": false, - "description": "Returns a string representing the source code of the object.\nMozilla-only.", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toString", - "access": "", - "virtual": false, - "description": "Returns a string representing the object.", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "valueOf", - "access": "", - "virtual": false, - "description": "Returns the object's `this` value.", - "parameters": [], - "examples": [], - "returns": { - "type": "*", - "description": "" - } - } - ], - "properties": [ - { - "name": "__parent__", - "access": "", - "virtual": false, - "description": "Points to an object's context. For top-level objects, this is the e.g. window.\nMozilla-only.", - "type": { - "names": [ - "Object" - ] - } - }, - { - "name": "__proto__", - "access": "", - "virtual": false, - "description": "Points to the object which was used as prototype when the object was instantiated.\nMozilla-only.\n\nWill be null on Object.prototype.", - "type": { - "names": [ - "Object" - ] - } - } - ] - }, - { - "name": "Function", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "Function", - "description": "", - "parameters": [ - { - "name": "var_args", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [] - }, - "functions": [ - { - "name": "call", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "var_args", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "*", - "description": "" - } - }, - { - "name": "apply", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "var_args", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "*", - "description": "" - } - }, - { - "name": "toString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - } - ], - "properties": [ - { - "name": "arity", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "caller", - "access": "", - "virtual": false, - "description": "Nonstandard; Mozilla and JScript only.", - "type": { - "names": [ - "function" - ] - } - }, - { - "name": "displayName", - "access": "", - "virtual": false, - "description": "Nonstandard.", - "type": { - "names": [ - "?" - ] - } - }, - { - "name": "length", - "access": "", - "virtual": false, - "description": "Expected number of arguments.", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "name", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - } - ] - }, - { - "name": "Array", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "Array", - "description": "", - "parameters": [ - { - "name": "var_args", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [] - }, - "functions": [ - { - "name": "[undefined]", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "Iterator.", - "description": "" - } - }, - { - "name": "concat", - "access": "", - "virtual": false, - "description": "Returns a new array comprised of this array joined with other array(s)\nand/or value(s).", - "parameters": [ - { - "name": "var_args", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "" - } - }, - { - "name": "join", - "access": "", - "virtual": false, - "description": "Joins all elements of an array into a string.", - "parameters": [ - { - "name": "opt_separator", - "type": "*", - "description": "Specifies a string to separate each element of the\n array. The separator is converted to a string if necessary. If omitted,\n the array elements are separated with a comma.", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "pop", - "access": "", - "virtual": false, - "description": "Removes the last element from an array and returns that element.", - "parameters": [], - "examples": [], - "returns": { - "type": "T", - "description": "" - } - }, - { - "name": "push", - "access": "", - "virtual": false, - "description": "Mutates an array by appending the given elements and returning the new\nlength of the array.", - "parameters": [ - { - "name": "var_args", - "type": [ - "T", - "undefined" - ], - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "The new length of the array." - } - }, - { - "name": "reverse", - "access": "", - "virtual": false, - "description": "Transposes the elements of an array in place: the first array element becomes the\nlast and the last becomes the first. The mutated array is also returned.", - "parameters": [], - "examples": [], - "returns": { - "type": "THIS", - "description": "A reference to the original modified array." - } - }, - { - "name": "shift", - "access": "", - "virtual": false, - "description": "Removes the first element from an array and returns that element. This\nmethod changes the length of the array.", - "parameters": [], - "examples": [], - "returns": { - "type": "T", - "description": "" - } - }, - { - "name": "slice", - "access": "", - "virtual": false, - "description": "Extracts a section of an array and returns a new array.", - "parameters": [ - { - "name": "opt_begin", - "type": "*", - "description": "Zero-based index at which to begin extraction. A\n non-number type will be auto-cast by the browser to a number.", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_end", - "type": "*", - "description": "Zero-based index at which to end extraction. slice\n extracts up to but not including end.", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "" - } - }, - { - "name": "sort", - "access": "", - "virtual": false, - "description": "Sorts the elements of an array in place.", - "parameters": [ - { - "name": "opt_compareFn", - "type": "function", - "description": "Specifies a function that\n defines the sort order.", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "" - } - }, - { - "name": "splice", - "access": "", - "virtual": false, - "description": "Changes the content of an array, adding new elements while removing old\nelements.", - "parameters": [ - { - "name": "opt_index", - "type": "*", - "description": "Index at which to start changing the array. If negative,\n will begin that many elements from the end. A non-number type will be\n auto-cast by the browser to a number.", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_howMany", - "type": "*", - "description": "An integer indicating the number of old array elements\n to remove.", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "var_args", - "type": "T", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "" - } - }, - { - "name": "toString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "unshift", - "access": "", - "virtual": false, - "description": "Adds one or more elements to the beginning of an array and returns the new\nlength of the array.", - "parameters": [ - { - "name": "var_args", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "The new length of the array" - } - }, - { - "name": "reduce", - "access": "", - "virtual": false, - "description": "Apply a function simultaneously against two values of the array (from\nleft-to-right) as to reduce it to a single value.", - "parameters": [ - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_initialValue", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "R", - "description": "" - } - }, - { - "name": "reduceRight", - "access": "", - "virtual": false, - "description": "Apply a function simultaneously against two values of the array (from\nright-to-left) as to reduce it to a single value.", - "parameters": [ - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_initialValue", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "R", - "description": "" - } - }, - { - "name": "every", - "access": "", - "virtual": false, - "description": "Available in ECMAScript 5, Mozilla 1.6+.", - "parameters": [ - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_thisobj", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - }, - { - "name": "filter", - "access": "", - "virtual": false, - "description": "Available in ECMAScript 5, Mozilla 1.6+.", - "parameters": [ - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_thisobj", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "" - } - }, - { - "name": "forEach", - "access": "", - "virtual": false, - "description": "Available in ECMAScript 5, Mozilla 1.6+.", - "parameters": [ - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_thisobj", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "undefined", - "description": "" - } - }, - { - "name": "indexOf", - "access": "", - "virtual": false, - "description": "Available in ECMAScript 5, Mozilla 1.6+.", - "parameters": [ - { - "name": "obj", - "type": "T", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_fromIndex", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "lastIndexOf", - "access": "", - "virtual": false, - "description": "Available in ECMAScript 5, Mozilla 1.6+.", - "parameters": [ - { - "name": "obj", - "type": "T", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_fromIndex", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "map", - "access": "", - "virtual": false, - "description": "Available in ECMAScript 5, Mozilla 1.6+.", - "parameters": [ - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_thisobj", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "" - } - }, - { - "name": "some", - "access": "", - "virtual": false, - "description": "Available in ECMAScript 5, Mozilla 1.6+.", - "parameters": [ - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_thisobj", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - }, - { - "name": "every", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "arr", - "type": "IArrayLike.", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_context", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - }, - { - "name": "filter", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "arr", - "type": "IArrayLike.", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_context", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "" - } - }, - { - "name": "forEach", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "arr", - "type": "IArrayLike.", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_context", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "undefined", - "description": "" - } - }, - { - "name": "indexOf", - "access": "", - "virtual": false, - "description": "Mozilla 1.6+ only.", - "parameters": [ - { - "name": "arr", - "type": "IArrayLike.", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "obj", - "type": "T", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_fromIndex", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "lastIndexOf", - "access": "", - "virtual": false, - "description": "Mozilla 1.6+ only.", - "parameters": [ - { - "name": "arr", - "type": "IArrayLike.", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "obj", - "type": "T", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_fromIndex", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "map", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "arr", - "type": "IArrayLike.", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_context", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "" - } - }, - { - "name": "some", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "arr", - "type": "IArrayLike.", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "callback", - "type": "function", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "opt_context", - "type": "S", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - }, - { - "name": "isArray", - "access": "", - "virtual": false, - "description": "Introduced in 1.8.5.", - "parameters": [ - { - "name": "arr", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - } - ], - "properties": [ - { - "name": "toSource", - "access": "", - "virtual": false, - "description": "", - "type": "" - }, - { - "name": "index", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "input", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "length", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "number" - ] - } - } - ] - }, - { - "name": "Boolean", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "Boolean", - "description": "", - "parameters": [ - { - "name": "opt_value", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "functions": [ - { - "name": "toSource", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "valueOf", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - } - ] - }, - { - "name": "Number", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "Number", - "description": "", - "parameters": [ - { - "name": "opt_value", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "functions": [ - { - "name": "toExponential", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "opt_fractionDigits", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toFixed", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "opt_digits", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toPrecision", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "opt_precision", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toString", - "access": "", - "virtual": false, - "description": "Returns a string representing the number.", - "parameters": [ - { - "name": "opt_radix", - "type": [ - "number", - "Number" - ], - "description": "An optional radix.", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - } - ] - }, - { - "name": "Date", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "Date", - "description": "", - "parameters": [ - { - "name": "opt_yr_num", - "type": "", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_mo_num", - "type": "", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_day_num", - "type": "", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_hr_num", - "type": "", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_min_num", - "type": "", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_sec_num", - "type": "", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_ms_num", - "type": "", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [] - }, - "functions": [ - { - "name": "now", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "parse", - "access": "", - "virtual": false, - "description": "Parses a string representation of a date, and returns the number\nof milliseconds since January 1, 1970, 00:00:00, local time.", - "parameters": [ - { - "name": "date", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "UTC", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "year", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "month", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_date", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_hours", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_minute", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_second", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_ms", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getDate", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getDay", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getMonth", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getFullYear", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getYear", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getHours", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getMinutes", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getSeconds", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getMilliseconds", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getTime", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getTimezoneOffset", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getUTCDate", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getUTCDay", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getUTCMonth", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getUTCFullYear", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getUTCHours", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getUTCMinutes", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getUTCSeconds", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "getUTCMilliseconds", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setDate", - "access": "", - "virtual": false, - "description": "Sets the day of the month for a specified date according to local time.", - "parameters": [ - { - "name": "dayValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setMonth", - "access": "", - "virtual": false, - "description": "Set the month for a specified date according to local time.", - "parameters": [ - { - "name": "monthValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_dayValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setFullYear", - "access": "", - "virtual": false, - "description": "Sets the full year for a specified date according to local time.", - "parameters": [ - { - "name": "yearValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_monthValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_dayValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setYear", - "access": "", - "virtual": false, - "description": "Sets the year for a specified date according to local time.", - "parameters": [ - { - "name": "yearValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setHours", - "access": "", - "virtual": false, - "description": "Sets the hours for a specified date according to local time.", - "parameters": [ - { - "name": "hoursValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_minutesValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_secondsValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_msValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setMinutes", - "access": "", - "virtual": false, - "description": "Sets the minutes for a specified date according to local time.", - "parameters": [ - { - "name": "minutesValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_secondsValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_msValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setSeconds", - "access": "", - "virtual": false, - "description": "Sets the seconds for a specified date according to local time.", - "parameters": [ - { - "name": "secondsValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_msValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setMilliseconds", - "access": "", - "virtual": false, - "description": "Sets the milliseconds for a specified date according to local time.", - "parameters": [ - { - "name": "millisecondsValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setTime", - "access": "", - "virtual": false, - "description": "Sets the Date object to the time represented by a number of milliseconds\nsince January 1, 1970, 00:00:00 UTC.", - "parameters": [ - { - "name": "timeValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setUTCDate", - "access": "", - "virtual": false, - "description": "Sets the day of the month for a specified date according to universal time.", - "parameters": [ - { - "name": "dayValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setUTCMonth", - "access": "", - "virtual": false, - "description": "Sets the month for a specified date according to universal time.", - "parameters": [ - { - "name": "monthValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_dayValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setUTCFullYear", - "access": "", - "virtual": false, - "description": "Sets the full year for a specified date according to universal time.", - "parameters": [ - { - "name": "yearValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_monthValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_dayValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setUTCHours", - "access": "", - "virtual": false, - "description": "Sets the hour for a specified date according to universal time.", - "parameters": [ - { - "name": "hoursValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_minutesValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_secondsValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_msValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setUTCMinutes", - "access": "", - "virtual": false, - "description": "Sets the minutes for a specified date according to universal time.", - "parameters": [ - { - "name": "minutesValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_secondsValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_msValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setUTCSeconds", - "access": "", - "virtual": false, - "description": "Sets the seconds for a specified date according to universal time.", - "parameters": [ - { - "name": "secondsValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_msValue", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "setUTCMilliseconds", - "access": "", - "virtual": false, - "description": "Sets the milliseconds for a specified date according to universal time.", - "parameters": [ - { - "name": "millisecondsValue", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "toSource", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toDateString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toGMTString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toTimeString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toUTCString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toLocaleDateString", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "opt_locales", - "type": [ - "string", - "Array." - ], - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_options", - "type": "Object", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toLocaleFormat", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "formatString", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toLocaleString", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "opt_locales", - "type": [ - "string", - "Array.=" - ], - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_options", - "type": "Object", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toLocaleTimeString", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "opt_locales", - "type": [ - "string", - "Array." - ], - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_options", - "type": "Object", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - } - ], - "properties": [ - { - "name": "valueOf", - "access": "", - "virtual": false, - "description": "", - "type": "" - } - ] - }, - { - "name": "String", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "String", - "description": "", - "parameters": [ - { - "name": "opt_str", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "functions": [ - { - "name": "fromCharCode", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "var_args", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "anchor", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "big", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "blink", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "bold", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "charAt", - "access": "", - "virtual": false, - "description": "Returns the specified character from a string.", - "parameters": [ - { - "name": "index", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "charCodeAt", - "access": "", - "virtual": false, - "description": "Returns a number indicating the Unicode value of the character at the given\nindex.", - "parameters": [ - { - "name": "opt_index", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "concat", - "access": "", - "virtual": false, - "description": "Combines the text of two or more strings and returns a new string.", - "parameters": [ - { - "name": "var_args", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "fixed", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "fontcolor", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "color", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "fontsize", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "size", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "indexOf", - "access": "", - "virtual": false, - "description": "Returns the index within the calling String object of the first occurrence\nof the specified value, starting the search at fromIndex, returns -1 if the\nvalue is not found.", - "parameters": [ - { - "name": "searchValue", - "type": [ - "string", - "null" - ], - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_fromIndex", - "type": [ - "number", - "null" - ], - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "italics", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "lastIndexOf", - "access": "", - "virtual": false, - "description": "Returns the index within the calling String object of the last occurrence of\nthe specified value, or -1 if not found. The calling string is searched\nbackward, starting at fromIndex.", - "parameters": [ - { - "name": "searchValue", - "type": [ - "string", - "null" - ], - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_fromIndex", - "type": [ - "number", - "null" - ], - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "link", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "hrefAttribute", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "localeCompare", - "access": "", - "virtual": false, - "description": "Returns a number indicating whether a reference string comes before or after\nor is the same as the given string in sort order.", - "parameters": [ - { - "name": "compareString", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": true - }, - { - "name": "locales", - "type": [ - "string", - "Array.=" - ], - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "options", - "type": "Object", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "match", - "access": "", - "virtual": false, - "description": "Used to retrieve the matches when matching a string against a regular\nexpression.", - "parameters": [ - { - "name": "regexp", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "This should really return an Array with a few\n special properties, but we do not have a good way to model this in\n our type system. Also see Regexp.prototype.exec." - } - }, - { - "name": "quote", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "replace", - "access": "", - "virtual": false, - "description": "Finds a match between a regular expression and a string, and replaces the\nmatched substring with a new substring.\n\nThis may have side-effects if the replacement function has side-effects.", - "parameters": [ - { - "name": "pattern", - "type": [ - "RegExp", - "string" - ], - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "replacement", - "type": [ - "string", - "function" - ], - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "search", - "access": "", - "virtual": false, - "description": "Executes the search for a match between a regular expression and this String\nobject.", - "parameters": [ - { - "name": "pattern", - "type": [ - "RegExp", - "string" - ], - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "slice", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "begin", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_end", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "small", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "split", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "opt_separator", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_limit", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "Array.", - "description": "" - } - }, - { - "name": "strike", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "sub", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "substr", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "start", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_length", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "The specified substring." - } - }, - { - "name": "substring", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "start", - "type": "number", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_end", - "type": "number", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "The specified substring." - } - }, - { - "name": "sup", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toLocaleUpperCase", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "opt_locales", - "type": [ - "string", - "Array." - ], - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toLocaleLowerCase", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "opt_locales", - "type": [ - "string", - "Array." - ], - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toLowerCase", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toUpperCase", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toSource", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "toString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - } - ], - "properties": [ - { - "name": "valueOf", - "access": "", - "virtual": false, - "description": "", - "type": "" - }, - { - "name": "length", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "number" - ] - } - } - ] - }, - { - "name": "RegExp", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "RegExp", - "description": "", - "parameters": [ - { - "name": "opt_pattern", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_flags", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "functions": [ - { - "name": "compile", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "pattern", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_flags", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "void", - "description": "" - } - }, - { - "name": "exec", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "str", - "type": "*", - "description": "The string to search.", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "RegExpResult", - "description": "" - } - }, - { - "name": "test", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "str", - "type": "*", - "description": "The string to search.", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "Whether the string was matched." - } - }, - { - "name": "toString", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - } - ], - "properties": [ - { - "name": "input", - "access": "", - "virtual": false, - "description": "The string against which the last regexp was matched.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "lastMatch", - "access": "", - "virtual": false, - "description": "The last matched characters.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "lastParen", - "access": "", - "virtual": false, - "description": "The last matched parenthesized substring, if any.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "leftContext", - "access": "", - "virtual": false, - "description": "The substring of the input up to the characters most recently matched.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "rightContext", - "access": "", - "virtual": false, - "description": "The substring of the input after the characters most recently matched.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "$1", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "$2", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "$3", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "$4", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "$5", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "$6", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "$7", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "$8", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "$9", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "global", - "access": "", - "virtual": false, - "description": "Whether to test the regular expression against all possible matches\nin a string, or only against the first.", - "type": { - "names": [ - "boolean" - ] - } - }, - { - "name": "ignoreCase", - "access": "", - "virtual": false, - "description": "Whether to ignore case while attempting a match in a string.", - "type": { - "names": [ - "boolean" - ] - } - }, - { - "name": "lastIndex", - "access": "", - "virtual": false, - "description": "The index at which to start the next match.", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "sticky", - "access": "", - "virtual": false, - "description": "Whether or not the regular expression uses lastIndex.", - "type": { - "names": [ - "boolean" - ] - } - }, - { - "name": "multiline", - "access": "", - "virtual": false, - "description": "Whether or not to search in strings across multiple lines.", - "type": { - "names": [ - "boolean" - ] - } - }, - { - "name": "source", - "access": "", - "virtual": false, - "description": "The text of the pattern.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "flags", - "access": "", - "virtual": false, - "description": "The flags the regex was created with.", - "type": { - "names": [ - "string" - ] - } - } - ] - }, - { - "name": "RegExpResult", - "description": "", - "extends": [ - "Array" - ], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "RegExpResult", - "description": "", - "parameters": [], - "examples": [] - }, - "properties": [ - { - "name": "index", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "input", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "length", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "groups", - "access": "", - "virtual": false, - "description": "Not actually part of ES3; was added in 2018.\nhttps://github.com/tc39/proposal-regexp-named-groups", - "type": { - "names": [ - "Object." - ] - } - } - ] - }, - { - "name": "Error", - "description": "", - "extends": [], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "Error", - "description": "", - "parameters": [ - { - "name": "opt_message", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_file", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_line", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "properties": [ - { - "name": "stackTraceLimit", - "access": "", - "virtual": false, - "description": "Chrome/v8 specific, altering the maximum depth of the stack trace\n(10 by default).", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "description", - "access": "", - "virtual": false, - "description": "IE-only.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "lineNumber", - "access": "", - "virtual": false, - "description": "Mozilla-only.", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "fileName", - "access": "", - "virtual": false, - "description": "Mozilla-only", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "name", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "message", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "sourceURL", - "access": "", - "virtual": false, - "description": "Doesn't seem to exist, but closure/debug.js references it.", - "type": "" - }, - { - "name": "stack", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - } - ], - "functions": [ - { - "name": "captureStackTrace", - "access": "", - "virtual": false, - "description": "Chrome/v8 specific, adds a stack trace to the error object. The optional\nconstructorOpt parameter allows you to pass in a function value. When\ncollecting the stack trace all frames above the topmost call to this\nfunction, including that call, will be left out of the stack trace.", - "parameters": [ - { - "name": "error", - "type": "Object", - "description": "The object to add the stack trace to.", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "opt_constructor", - "type": "function", - "description": "A function in the stack trace", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "undefined", - "description": "" - } - } - ] - }, - { - "name": "EvalError", - "description": "", - "extends": [ - "Error" - ], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "EvalError", - "description": "", - "parameters": [ - { - "name": "opt_message", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_file", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_line", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "properties": [ - { - "name": "description", - "access": "", - "virtual": false, - "description": "IE-only.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "lineNumber", - "access": "", - "virtual": false, - "description": "Mozilla-only.", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "fileName", - "access": "", - "virtual": false, - "description": "Mozilla-only", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "name", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "message", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "sourceURL", - "access": "", - "virtual": false, - "description": "Doesn't seem to exist, but closure/debug.js references it.", - "type": "" - }, - { - "name": "stack", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - } - ] - }, - { - "name": "RangeError", - "description": "", - "extends": [ - "Error" - ], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "RangeError", - "description": "", - "parameters": [ - { - "name": "opt_message", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_file", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_line", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "properties": [ - { - "name": "description", - "access": "", - "virtual": false, - "description": "IE-only.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "lineNumber", - "access": "", - "virtual": false, - "description": "Mozilla-only.", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "fileName", - "access": "", - "virtual": false, - "description": "Mozilla-only", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "name", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "message", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "sourceURL", - "access": "", - "virtual": false, - "description": "Doesn't seem to exist, but closure/debug.js references it.", - "type": "" - }, - { - "name": "stack", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - } - ] - }, - { - "name": "ReferenceError", - "description": "", - "extends": [ - "Error" - ], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "ReferenceError", - "description": "", - "parameters": [ - { - "name": "opt_message", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_file", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_line", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "properties": [ - { - "name": "description", - "access": "", - "virtual": false, - "description": "IE-only.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "lineNumber", - "access": "", - "virtual": false, - "description": "Mozilla-only.", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "fileName", - "access": "", - "virtual": false, - "description": "Mozilla-only", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "name", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "message", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "sourceURL", - "access": "", - "virtual": false, - "description": "Doesn't seem to exist, but closure/debug.js references it.", - "type": "" - }, - { - "name": "stack", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - } - ] - }, - { - "name": "SyntaxError", - "description": "", - "extends": [ - "Error" - ], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "SyntaxError", - "description": "", - "parameters": [ - { - "name": "opt_message", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_file", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_line", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "properties": [ - { - "name": "description", - "access": "", - "virtual": false, - "description": "IE-only.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "lineNumber", - "access": "", - "virtual": false, - "description": "Mozilla-only.", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "fileName", - "access": "", - "virtual": false, - "description": "Mozilla-only", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "name", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "message", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "sourceURL", - "access": "", - "virtual": false, - "description": "Doesn't seem to exist, but closure/debug.js references it.", - "type": "" - }, - { - "name": "stack", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - } - ] - }, - { - "name": "TypeError", - "description": "", - "extends": [ - "Error" - ], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "TypeError", - "description": "", - "parameters": [ - { - "name": "opt_message", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_file", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_line", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "properties": [ - { - "name": "description", - "access": "", - "virtual": false, - "description": "IE-only.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "lineNumber", - "access": "", - "virtual": false, - "description": "Mozilla-only.", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "fileName", - "access": "", - "virtual": false, - "description": "Mozilla-only", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "name", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "message", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "sourceURL", - "access": "", - "virtual": false, - "description": "Doesn't seem to exist, but closure/debug.js references it.", - "type": "" - }, - { - "name": "stack", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - } - ] - }, - { - "name": "URIError", - "description": "", - "extends": [ - "Error" - ], - "access": "", - "virtual": false, - "fires": "", - "constructor": { - "name": "URIError", - "description": "", - "parameters": [ - { - "name": "opt_message", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_file", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - }, - { - "name": "opt_line", - "type": "*", - "description": "", - "default": "", - "optional": true, - "nullable": "" - } - ], - "examples": [] - }, - "properties": [ - { - "name": "description", - "access": "", - "virtual": false, - "description": "IE-only.", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "lineNumber", - "access": "", - "virtual": false, - "description": "Mozilla-only.", - "type": { - "names": [ - "number" - ] - } - }, - { - "name": "fileName", - "access": "", - "virtual": false, - "description": "Mozilla-only", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "name", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "message", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - }, - { - "name": "sourceURL", - "access": "", - "virtual": false, - "description": "Doesn't seem to exist, but closure/debug.js references it.", - "type": "" - }, - { - "name": "stack", - "access": "", - "virtual": false, - "description": "", - "type": { - "names": [ - "string" - ] - } - } - ] - } - ], - "functions": [ - { - "name": "decodeURI", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "uri", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "decodeURIComponent", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "uri", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "encodeURI", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "uri", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "encodeURIComponent", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "uri", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "escape", - "access": "", - "virtual": false, - "description": "Should only be used in browsers where encode/decodeURIComponent\nare not present, as the latter handle fancy Unicode characters.", - "parameters": [ - { - "name": "str", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "unescape", - "access": "", - "virtual": false, - "description": "Should only be used in browsers where encode/decodeURIComponent\nare not present, as the latter handle fancy Unicode characters.", - "parameters": [ - { - "name": "str", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "string", - "description": "" - } - }, - { - "name": "isFinite", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "num", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - }, - { - "name": "isNaN", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "num", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "boolean", - "description": "" - } - }, - { - "name": "parseFloat", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "num", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "parseInt", - "access": "", - "virtual": false, - "description": "Parse an integer. Use of `parseInt` without `base` is strictly\nbanned in Google. If you really want to parse octal or hex based on the\nleader, then pass `undefined` as the base.", - "parameters": [ - { - "name": "num", - "type": "*", - "description": "", - "default": "", - "optional": "", - "nullable": "" - }, - { - "name": "base", - "type": [ - "number", - "undefined" - ], - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "number", - "description": "" - } - }, - { - "name": "eval", - "access": "", - "virtual": false, - "description": "", - "parameters": [ - { - "name": "code", - "type": "string", - "description": "", - "default": "", - "optional": "", - "nullable": "" - } - ], - "examples": [], - "returns": { - "type": "*", - "description": "" - } - }, - { - "name": "ActiveXObject", - "access": "", - "virtual": false, - "description": "", - "parameters": [], - "examples": [] - } - ] -} diff --git a/extract/javascript/es3.js b/extract/javascript/es3.js deleted file mode 100644 index 3fc27b4173..0000000000 --- a/extract/javascript/es3.js +++ /dev/null @@ -1,2403 +0,0 @@ -'use strict'; -/* - * Copyright 2008 The Closure Compiler Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @fileoverview ECMAScript 3 Built-Ins. This include common extensions so this - * is actually ES3+Reality. - * @externs - * @author stevey@google.com (Steve Yegge) - * @author nicksantos@google.com (Nick Santos) - * @author arv@google.com (Erik Arvidsson) - * @author johnlenz@google.com (John Lenz) - */ - - -// START ES6 RETROFIT CODE -// symbol, Symbol and Symbol.iterator are actually ES6 types but some -// base types require them to be part of their definition (such as Array). - - -/** - * @constructor - * @param {*=} opt_description - * @return {symbol} - */ -function Symbol(opt_description) {} - - -/** - * @const {string|undefined} - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/description - */ -Symbol.prototype.description; - - -/** - * @param {string} sym - * @return {symbol|undefined} - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for - */ -Symbol.for = function(sym) {}; - - -/** - * @param {symbol} sym - * @return {string|undefined} - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/keyFor - */ -Symbol.keyFor = function(sym) {}; - - -// Well known symbols - -/** @const {symbol} */ -Symbol.iterator; - -/** @const {symbol} */ -Symbol.toStringTag; - -/** @const {symbol} */ -Symbol.unscopables; - - -/** - * @record - * @template VALUE - */ -function IIterableResult() {}; - -/** @type {boolean} */ -IIterableResult.prototype.done; - -/** @type {VALUE} */ -IIterableResult.prototype.value; - - - -/** - * @interface - * @template VALUE - */ -function Iterable() {} - -// TODO(johnlenz): remove the suppression when the compiler understands -// "symbol" natively -/** - * @return {!Iterator} - * @suppress {externsValidation} - */ -Iterable.prototype[Symbol.iterator] = function() {}; - - - -/** - * @interface - * @template VALUE - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/The_Iterator_protocol - */ -function Iterator() {} - -/** - * @param {?=} opt_value - * @return {!IIterableResult} - */ -Iterator.prototype.next = function(opt_value) {}; - - -/** - * Use this to indicate a type is both an Iterator and an Iterable. - * @interface - * @extends {Iterator} - * @extends {Iterable} - * @template T - */ -function IteratorIterable() {} - -// END ES6 RETROFIT CODE - - -/** - * @interface - * @template KEY1, VALUE1 - */ -function IObject() {} - -/** - * @record - * @extends {IObject} - * @template VALUE2 - */ -function IArrayLike() {} - -/** @type {number} */ -IArrayLike.prototype.length; - -/** - * @constructor - * @implements {IArrayLike} - * @implements {Iterable} - * @template T - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments - */ -function Arguments() {} - -/** - * @type {Function} - * @see http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments/callee - */ -Arguments.prototype.callee; - -/** - * Use the non-standard {@see Function.prototype.caller} property of a function - * object instead. - * @type {Function} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/caller - * @deprecated - */ -Arguments.prototype.caller; - -/** - * @type {number} - * @see http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments/length - */ -Arguments.prototype.length; - -/** - * Not actually a global variable, when running in a browser environment. But - * we need it in order for the type checker to typecheck the "arguments" - * variable in a function correctly. - * - * TODO(tbreisacher): There should be a separate 'arguments' variable of type - * `Array`, in the d8 externs. - * - * @type {!Arguments} - * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments - */ -// var arguments; - -/** - * @type {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity - * @const - */ -var Infinity; - -/** - * @type {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN - * @const - */ -var NaN; - -/** - * @type {undefined} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined - * @const - */ -var undefined; - -/** - * @param {string} uri - * @return {string} - * @throws {URIError} when used wrongly. - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURI - */ -function decodeURI(uri) {} - -/** - * @param {string} uri - * @return {string} - * @throws {URIError} when used wrongly. - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent - */ -function decodeURIComponent(uri) {} - -/** - * @param {string} uri - * @return {string} - * @throws {URIError} if one attempts to encode a surrogate which is not part of - * a high-low pair. - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI - */ -function encodeURI(uri) {} - -/** - * @param {string} uri - * @return {string} - * @throws {URIError} if one attempts to encode a surrogate which is not part of - * a high-low pair. - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent - */ -function encodeURIComponent(uri) {} - -/** - * Should only be used in browsers where encode/decodeURIComponent - * are not present, as the latter handle fancy Unicode characters. - * @param {string} str - * @return {string} - * @nosideeffects - * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Predefined_Functions/escape_and_unescape_Functions - */ -function escape(str) {} - -/** - * Should only be used in browsers where encode/decodeURIComponent - * are not present, as the latter handle fancy Unicode characters. - * @param {string} str - * @return {string} - * @nosideeffects - * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Predefined_Functions/escape_and_unescape_Functions - */ -function unescape(str) {} - -/** - * @param {*} num - * @return {boolean} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite - */ -function isFinite(num) {} - -/** - * @param {*} num - * @return {boolean} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN - */ -function isNaN(num) {} - -/** - * @param {*} num - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat - */ -function parseFloat(num) {} - -/** - * Parse an integer. Use of `parseInt` without `base` is strictly - * banned in Google. If you really want to parse octal or hex based on the - * leader, then pass `undefined` as the base. - * - * @param {*} num - * @param {number|undefined} base - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt - */ -function parseInt(num, base) {} - -/** - * @param {string} code - * @return {*} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval - */ -function eval(code) {} - - - -/** - * @constructor - * @param {*=} opt_value - * @return {!Object} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object - */ -function Object(opt_value) {} - -/** - * The constructor of the current object. - * @type {Function} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor - */ -Object.prototype.constructor = function() {}; - -/** - * Binds an object's property to a function to be called when that property is - * looked up. - * Mozilla-only. - * - * @param {string} sprop - * @param {Function} fun - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineGetter - * @return {undefined} - */ -Object.prototype.__defineGetter__ = function(sprop, fun) {}; - -/** - * Binds an object's property to a function to be called when an attempt is made - * to set that property. - * Mozilla-only. - * - * @param {string} sprop - * @param {Function} fun - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineSetter - * @return {undefined} - */ -Object.prototype.__defineSetter__ = function(sprop, fun) {}; - -/** - * Returns whether the object has a property with the specified name. - * - * @param {*} propertyName Implicitly cast to a string. - * @return {boolean} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty - */ -Object.prototype.hasOwnProperty = function(propertyName) {}; - -/** - * Returns whether an object exists in another object's prototype chain. - * - * @param {Object} other - * @return {boolean} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf - */ -Object.prototype.isPrototypeOf = function(other) {}; - -/** - * Return the function bound as a getter to the specified property. - * Mozilla-only. - * - * @param {string} sprop a string containing the name of the property whose - * getter should be returned - * @return {Function} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/lookupGetter - */ -Object.prototype.__lookupGetter__ = function(sprop) {}; - -/** - * Return the function bound as a setter to the specified property. - * Mozilla-only. - * - * @param {string} sprop a string containing the name of the property whose - * setter should be returned. - * @return {Function} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/lookupSetter - */ -Object.prototype.__lookupSetter__ = function(sprop) {}; - -/** - * Executes a function when a non-existent method is called on an object. - * Mozilla-only. - * - * @param {Function} fun - * @return {*} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/noSuchMethod - */ -Object.prototype.__noSuchMethod__ = function(fun) {}; - -/** - * Points to an object's context. For top-level objects, this is the e.g. window. - * Mozilla-only. - * - * @type {Object} - * @deprecated - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/parent - */ -Object.prototype.__parent__; - -/** - * Points to the object which was used as prototype when the object was instantiated. - * Mozilla-only. - * - * Will be null on Object.prototype. - * - * @type {Object} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto - */ -Object.prototype.__proto__; - -/** - * Determine whether the specified property in an object can be enumerated by a - * for..in loop, with the exception of properties inherited through the - * prototype chain. - * - * @param {string} propertyName - * @return {boolean} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable - */ -Object.prototype.propertyIsEnumerable = function(propertyName) {}; - -/** - * Returns a localized string representing the object. - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString - */ -Object.prototype.toLocaleString = function() {}; - -/** - * Returns a string representing the source code of the object. - * Mozilla-only. - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toSource - */ -Object.prototype.toSource = function() {}; - -/** - * Returns a string representing the object. - * @this {*} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString - */ -Object.prototype.toString = function() {}; - -/** - * Returns the object's `this` value. - * @return {*} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf - */ -Object.prototype.valueOf = function() {}; - -/** - * @constructor - * @param {...*} var_args - * @throws {Error} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function - */ -function Function(var_args) {} - -/** - * @param {...*} var_args - * @return {*} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call - */ -Function.prototype.call = function(var_args) {}; - -/** - * @param {...*} var_args - * @return {*} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply - */ -Function.prototype.apply = function(var_args) {}; - -Function.prototype.arguments; - -/** - * @type {number} - * @deprecated - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity - */ -Function.prototype.arity; - -/** - * Nonstandard; Mozilla and JScript only. - * @type {Function} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller - */ -Function.prototype.caller; - -/** - * Nonstandard. - * @type {?} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName - */ -Function.prototype.displayName; - -/** - * Expected number of arguments. - * @type {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length - */ -Function.prototype.length; - -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name - */ -Function.prototype.name; - -/** - * @this {Function} - * @return {string} - * @nosideeffects - * @override - */ -Function.prototype.toString = function() {}; - - -/** - * @constructor - * @implements {IArrayLike} - * @implements {Iterable} - * @param {...*} var_args - * @return {!Array} - * @nosideeffects - * @template T - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array - */ -function Array(var_args) {} - -/** - * @return {Iterator} - * @suppress {externsValidation} - */ -Array.prototype[Symbol.iterator] = function() {}; - -// Functions: - -/** - * Returns a new array comprised of this array joined with other array(s) - * and/or value(s). - * - * @param {...*} var_args - * @return {!Array} - * @this {*} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat - */ -Array.prototype.concat = function(var_args) {}; - -/** - * Joins all elements of an array into a string. - * - * @param {*=} opt_separator Specifies a string to separate each element of the - * array. The separator is converted to a string if necessary. If omitted, - * the array elements are separated with a comma. - * @return {string} - * @this {IArrayLike|string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join - */ -Array.prototype.join = function(opt_separator) {}; - -/** - * Removes the last element from an array and returns that element. - * - * @return {T} - * @this {IArrayLike} - * @modifies {this} - * @template T - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop - */ -Array.prototype.pop = function() {}; - -// TODO(bradfordcsmith): remove "undefined" from the var_args of push -/** - * Mutates an array by appending the given elements and returning the new - * length of the array. - * - * @param {...(T|undefined)} var_args - * @return {number} The new length of the array. - * @this {IArrayLike} - * @template T - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push - */ -Array.prototype.push = function(var_args) {}; - -/** - * Transposes the elements of an array in place: the first array element becomes the - * last and the last becomes the first. The mutated array is also returned. - * - * @return {THIS} A reference to the original modified array. - * @this {THIS} - * @template THIS - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse - */ -Array.prototype.reverse = function() {}; - -/** - * Removes the first element from an array and returns that element. This - * method changes the length of the array. - * - * @this {IArrayLike} - * @modifies {this} - * @return {T} - * @template T - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift - */ -Array.prototype.shift = function() {}; - -/** - * Extracts a section of an array and returns a new array. - * - * @param {*=} opt_begin Zero-based index at which to begin extraction. A - * non-number type will be auto-cast by the browser to a number. - * @param {*=} opt_end Zero-based index at which to end extraction. slice - * extracts up to but not including end. - * @return {!Array} - * @this {IArrayLike|string} - * @template T - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice - */ -Array.prototype.slice = function(opt_begin, opt_end) {}; - -/** - * Sorts the elements of an array in place. - * - * @param {function(T,T):number=} opt_compareFn Specifies a function that - * defines the sort order. - * @this {IArrayLike} - * @template T - * @modifies {this} - * @return {!Array} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort - */ -Array.prototype.sort = function(opt_compareFn) {}; - -/** - * Changes the content of an array, adding new elements while removing old - * elements. - * - * @param {*=} opt_index Index at which to start changing the array. If negative, - * will begin that many elements from the end. A non-number type will be - * auto-cast by the browser to a number. - * @param {*=} opt_howMany An integer indicating the number of old array elements - * to remove. - * @param {...T} var_args - * @return {!Array} - * @this {IArrayLike} - * @modifies {this} - * @template T - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice - */ -Array.prototype.splice = function(opt_index, opt_howMany, var_args) {}; - -/** - * @return {string} - * @this {Object} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSource - */ -Array.prototype.toSource; - -/** - * @this {Array} - * @return {string} - * @nosideeffects - * @override - */ -Array.prototype.toString = function() {}; - -/** - * Adds one or more elements to the beginning of an array and returns the new - * length of the array. - * - * @param {...*} var_args - * @return {number} The new length of the array - * @this {IArrayLike} - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift - */ -Array.prototype.unshift = function(var_args) {}; - -/** - * Apply a function simultaneously against two values of the array (from - * left-to-right) as to reduce it to a single value. - * - * @param {?function(?, T, number, !Array) : R} callback - * @param {*=} opt_initialValue - * @return {R} - * @this {IArrayLike|string} - * @template T,R - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce - */ -Array.prototype.reduce = function(callback, opt_initialValue) {}; - -/** - * Apply a function simultaneously against two values of the array (from - * right-to-left) as to reduce it to a single value. - * - * @param {?function(?, T, number, !Array) : R} callback - * @param {*=} opt_initialValue - * @return {R} - * @this {IArrayLike|string} - * @template T,R - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight - */ -Array.prototype.reduceRight = function(callback, opt_initialValue) {}; - -/** - * Available in ECMAScript 5, Mozilla 1.6+. - * @param {?function(this:S, T, number, !Array): ?} callback - * @param {S=} opt_thisobj - * @return {boolean} - * @this {IArrayLike|string} - * @template T,S - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every - */ -Array.prototype.every = function(callback, opt_thisobj) {}; - -/** - * Available in ECMAScript 5, Mozilla 1.6+. - * @param {?function(this:S, T, number, !Array): ?} callback - * @param {S=} opt_thisobj - * @return {!Array} - * @this {IArrayLike|string} - * @template T,S - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter - */ -Array.prototype.filter = function(callback, opt_thisobj) {}; - -/** - * Available in ECMAScript 5, Mozilla 1.6+. - * @param {?function(this:S, T, number, !Array): ?} callback - * @param {S=} opt_thisobj - * @this {IArrayLike|string} - * @template T,S - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach - * @return {undefined} - */ -Array.prototype.forEach = function(callback, opt_thisobj) {}; - -/** - * Available in ECMAScript 5, Mozilla 1.6+. - * @param {T} obj - * @param {number=} opt_fromIndex - * @return {number} - * @this {IArrayLike|string} - * @nosideeffects - * @template T - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf - */ -Array.prototype.indexOf = function(obj, opt_fromIndex) {}; - -/** - * Available in ECMAScript 5, Mozilla 1.6+. - * @param {T} obj - * @param {number=} opt_fromIndex - * @return {number} - * @this {IArrayLike|string} - * @nosideeffects - * @template T - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf - */ -Array.prototype.lastIndexOf = function(obj, opt_fromIndex) {}; - -/** - * Available in ECMAScript 5, Mozilla 1.6+. - * @param {?function(this:S, T, number, !Array): R} callback - * @param {S=} opt_thisobj - * @return {!Array} - * @this {IArrayLike|string} - * @template T,S,R - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map - */ -Array.prototype.map = function(callback, opt_thisobj) {}; - -/** - * Available in ECMAScript 5, Mozilla 1.6+. - * @param {?function(this:S, T, number, !Array): ?} callback - * @param {S=} opt_thisobj - * @return {boolean} - * @this {IArrayLike|string} - * @template T,S - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some - */ -Array.prototype.some = function(callback, opt_thisobj) {}; - -/** - * @type {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/index - */ -Array.prototype.index; - -/** - * @type {?string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/input - */ -Array.prototype.input; - -/** - * @type {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length - */ -Array.prototype.length; - -/** - * @param {IArrayLike} arr - * @param {?function(this:S, T, number, ?) : ?} callback - * @param {S=} opt_context - * @return {boolean} - * @template T,S - */ -Array.every = function(arr, callback, opt_context) {}; - -/** - * @param {IArrayLike} arr - * @param {?function(this:S, T, number, ?) : ?} callback - * @param {S=} opt_context - * @return {!Array} - * @template T,S - */ -Array.filter = function(arr, callback, opt_context) {}; - -/** - * @param {IArrayLike} arr - * @param {?function(this:S, T, number, ?) : ?} callback - * @param {S=} opt_context - * @template T,S - * @return {undefined} - */ -Array.forEach = function(arr, callback, opt_context) {}; - -/** - * Mozilla 1.6+ only. - * @param {IArrayLike} arr - * @param {T} obj - * @param {number=} opt_fromIndex - * @return {number} - * @template T - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf - */ -Array.indexOf = function(arr, obj, opt_fromIndex) {}; - -/** - * Mozilla 1.6+ only. - * @param {IArrayLike} arr - * @param {T} obj - * @param {number=} opt_fromIndex - * @return {number} - * @template T - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf - */ -Array.lastIndexOf = function(arr, obj, opt_fromIndex) {}; - -/** - * @param {IArrayLike} arr - * @param {?function(this:S, T, number, !Array): R} callback - * @param {S=} opt_context - * @return {!Array} - * @template T,S,R - */ -Array.map = function(arr, callback, opt_context) {}; - -/** - * @param {IArrayLike} arr - * @param {?function(this:S, T, number, ?) : ?} callback - * @param {S=} opt_context - * @return {boolean} - * @template T,S - */ -Array.some = function(arr, callback, opt_context) {}; - -/** - * Introduced in 1.8.5. - * @param {*} arr - * @return {boolean} - * @nosideeffects - * @see http://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray - */ -Array.isArray = function(arr) {}; - -/** - * @constructor - * @param {*=} opt_value - * @return {boolean} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean - */ -function Boolean(opt_value) {} - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toSource - * @override - */ -Boolean.prototype.toSource = function() {}; - -/** - * @this {boolean|Boolean} - * @return {string} - * @nosideeffects - * @override - */ -Boolean.prototype.toString = function() {}; - -/** - * @return {boolean} - * @nosideeffects - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/valueOf - * @override - */ -Boolean.prototype.valueOf = function() {}; - -/** - * @constructor - * @param {*=} opt_value - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number - */ -function Number(opt_value) {} - -/** - * @this {Number|number} - * @param {number=} opt_fractionDigits - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toExponential - */ -Number.prototype.toExponential = function(opt_fractionDigits) {}; - -/** - * @this {Number|number} - * @param {*=} opt_digits - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed - */ -Number.prototype.toFixed = function(opt_digits) {}; - -/** - * @this {Number|number} - * @param {number=} opt_precision - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision - */ -Number.prototype.toPrecision = function(opt_precision) {}; - -/** - * Returns a string representing the number. - * @this {Number|number} - * @param {(number|Number)=} opt_radix An optional radix. - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString - * @override - */ -Number.prototype.toString = function(opt_radix) {}; - -// Properties. -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_VALUE - */ -Number.MAX_VALUE; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE - */ -Number.MIN_VALUE; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NaN - */ -Number.NaN; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY - */ -Number.NEGATIVE_INFINITY; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY - */ -Number.POSITIVE_INFINITY; - - -/** - * @const - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math - */ -var Math = {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs - */ -Math.abs = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acos - */ -Math.acos = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asin - */ -Math.asin = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan - */ -Math.atan = function(x) {}; - -/** - * @param {?} y - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2 - */ -Math.atan2 = function(y, x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/ceil - */ -Math.ceil = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cos - */ -Math.cos = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/exp - */ -Math.exp = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor - */ -Math.floor = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log - */ -Math.log = function(x) {}; - -/** - * @param {...?} var_args - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max - */ -Math.max = function(var_args) {}; - -/** - * @param {...?} var_args - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min - */ -Math.min = function(var_args) {}; - -/** - * @param {?} x - * @param {?} y - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow - */ -Math.pow = function(x, y) {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random - */ -Math.random = function() {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round - */ -Math.round = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sin - */ -Math.sin = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sqrt - */ -Math.sqrt = function(x) {}; - -/** - * @param {?} x - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tan - */ -Math.tan = function(x) {}; - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/toSource - */ -Math.toSource = function() {}; - -// Properties: - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E - */ -Math.E; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN2 - */ -Math.LN2; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LN10 - */ -Math.LN10; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG2E - */ -Math.LOG2E; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG10E - */ -Math.LOG10E; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/PI - */ -Math.PI; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT1_2 - */ -Math.SQRT1_2; - -/** - * @const {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/SQRT2 - */ -Math.SQRT2; - - -/** - * @param {?=} opt_yr_num - * @param {?=} opt_mo_num - * @param {?=} opt_day_num - * @param {?=} opt_hr_num - * @param {?=} opt_min_num - * @param {?=} opt_sec_num - * @param {?=} opt_ms_num - * @constructor - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date - */ -function Date(opt_yr_num, opt_mo_num, opt_day_num, opt_hr_num, opt_min_num, - opt_sec_num, opt_ms_num) {} - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now - */ -Date.now = function() {}; - -/** - * Parses a string representation of a date, and returns the number - * of milliseconds since January 1, 1970, 00:00:00, local time. - * @param {*} date - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse - */ -Date.parse = function(date) {}; - -/** - * @param {number} year - * @param {number} month - * @param {number=} opt_date - * @param {number=} opt_hours - * @param {number=} opt_minute - * @param {number=} opt_second - * @param {number=} opt_ms - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC - */ -Date.UTC = function(year, month, - opt_date, opt_hours, opt_minute, opt_second, opt_ms) {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate - */ -Date.prototype.getDate = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getDay - */ -Date.prototype.getDay = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMonth - */ -Date.prototype.getMonth = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear - */ -Date.prototype.getFullYear = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getYear - */ -Date.prototype.getYear = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getHours - */ -Date.prototype.getHours = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMinutes - */ -Date.prototype.getMinutes = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getSeconds - */ -Date.prototype.getSeconds = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMilliseconds - */ -Date.prototype.getMilliseconds = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime - */ -Date.prototype.getTime = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset - */ -Date.prototype.getTimezoneOffset = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDate - */ -Date.prototype.getUTCDate = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDay - */ -Date.prototype.getUTCDay = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMonth - */ -Date.prototype.getUTCMonth = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCFullYear - */ -Date.prototype.getUTCFullYear = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCHours - */ -Date.prototype.getUTCHours = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMinutes - */ -Date.prototype.getUTCMinutes = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCSeconds - */ -Date.prototype.getUTCSeconds = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds - */ -Date.prototype.getUTCMilliseconds = function() {}; - -/** - * Sets the day of the month for a specified date according to local time. - * - * @param {number} dayValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setDate - * @return {number} - */ -Date.prototype.setDate = function(dayValue) {}; - -/** - * Set the month for a specified date according to local time. - * - * @param {number} monthValue - * @param {number=} opt_dayValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMonth - * @return {number} - */ -Date.prototype.setMonth = function(monthValue, opt_dayValue) {}; - -/** - * Sets the full year for a specified date according to local time. - * - * @param {number} yearValue - * @param {number=} opt_monthValue - * @param {number=} opt_dayValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setFullYear - * @return {number} - */ -Date.prototype.setFullYear = - function(yearValue, opt_monthValue, opt_dayValue) {}; - -/** - * Sets the year for a specified date according to local time. - * - * @param {number} yearValue - * @deprecated - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear - * @return {number} - */ -Date.prototype.setYear = function(yearValue) {}; - -/** - * Sets the hours for a specified date according to local time. - * - * @param {number} hoursValue - * @param {number=} opt_minutesValue - * @param {number=} opt_secondsValue - * @param {number=} opt_msValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours - * @return {number} - */ -Date.prototype.setHours = function(hoursValue, opt_minutesValue, - opt_secondsValue, opt_msValue) {}; - -/** - * Sets the minutes for a specified date according to local time. - * - * @param {number} minutesValue - * @param {number=} opt_secondsValue - * @param {number=} opt_msValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMinutes - * @return {number} - */ -Date.prototype.setMinutes = - function(minutesValue, opt_secondsValue, opt_msValue) {}; - -/** - * Sets the seconds for a specified date according to local time. - * - * @param {number} secondsValue - * @param {number=} opt_msValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setSeconds - * @return {number} - */ -Date.prototype.setSeconds = function(secondsValue, opt_msValue) {}; - -/** - * Sets the milliseconds for a specified date according to local time. - * - * @param {number} millisecondsValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setMilliseconds - * @return {number} - */ -Date.prototype.setMilliseconds = function(millisecondsValue) {}; - -/** - * Sets the Date object to the time represented by a number of milliseconds - * since January 1, 1970, 00:00:00 UTC. - * - * @param {number} timeValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setTime - * @return {number} - */ -Date.prototype.setTime = function(timeValue) {}; - -/** - * Sets the day of the month for a specified date according to universal time. - * - * @param {number} dayValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCDate - * @return {number} - */ -Date.prototype.setUTCDate = function(dayValue) {}; - -/** - * Sets the month for a specified date according to universal time. - * - * @param {number} monthValue - * @param {number=} opt_dayValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth - * @return {number} - */ -Date.prototype.setUTCMonth = function(monthValue, opt_dayValue) {}; - -/** - * Sets the full year for a specified date according to universal time. - * - * @param {number} yearValue - * @param {number=} opt_monthValue - * @param {number=} opt_dayValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCFullYear - * @return {number} - */ -Date.prototype.setUTCFullYear = function(yearValue, opt_monthValue, - opt_dayValue) {}; - -/** - * Sets the hour for a specified date according to universal time. - * - * @param {number} hoursValue - * @param {number=} opt_minutesValue - * @param {number=} opt_secondsValue - * @param {number=} opt_msValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCHours - * @return {number} - */ -Date.prototype.setUTCHours = function(hoursValue, opt_minutesValue, - opt_secondsValue, opt_msValue) {}; - -/** - * Sets the minutes for a specified date according to universal time. - * - * @param {number} minutesValue - * @param {number=} opt_secondsValue - * @param {number=} opt_msValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes - * @return {number} - */ -Date.prototype.setUTCMinutes = function(minutesValue, opt_secondsValue, - opt_msValue) {}; - - -/** - * Sets the seconds for a specified date according to universal time. - * - * @param {number} secondsValue - * @param {number=} opt_msValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCSeconds - * @return {number} - */ -Date.prototype.setUTCSeconds = function(secondsValue, opt_msValue) {}; - -/** - * Sets the milliseconds for a specified date according to universal time. - * - * @param {number} millisecondsValue - * @modifies {this} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds - * @return {number} - */ -Date.prototype.setUTCMilliseconds = function(millisecondsValue) {}; - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toSource - * @override - */ -Date.prototype.toSource = function() {}; - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toDateString - */ -Date.prototype.toDateString = function() {}; - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toGMTString - */ -Date.prototype.toGMTString = function() {}; - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toTimeString - */ -Date.prototype.toTimeString = function() {}; - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString - */ -Date.prototype.toUTCString = function() {}; - -/** - * @param {(string|Array)=} opt_locales - * @param {Object=} opt_options - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString - */ -Date.prototype.toLocaleDateString = function(opt_locales, opt_options) {}; - -/** - * @param {string} formatString - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat - */ -Date.prototype.toLocaleFormat = function(formatString) {}; - -/** - * @param {string|Array=} opt_locales - * @param {Object=} opt_options - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString - * @see http://www.ecma-international.org/ecma-402/1.0/#sec-13.3.1 - * @override - */ -Date.prototype.toLocaleString = function(opt_locales, opt_options) {}; - -/** - * @param {(string|Array)=} opt_locales - * @param {Object=} opt_options - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString - */ -Date.prototype.toLocaleTimeString = function(opt_locales, opt_options) {}; - -/** - * @this {Date} - * @return {string} - * @nosideeffects - * @override - */ -Date.prototype.toString = function() {}; - -/** - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/valueOf - */ -Date.prototype.valueOf; - -/** - * @constructor - * @implements {Iterable} - * @param {*=} opt_str - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String - */ -function String(opt_str) {} - -/** - * @param {...number} var_args - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode - */ -String.fromCharCode = function(var_args) {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/anchor - */ -String.prototype.anchor = function() {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/big - */ -String.prototype.big = function() {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/blink - */ -String.prototype.blink = function() {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/bold - */ -String.prototype.bold = function() {}; - -/** - * Returns the specified character from a string. - * - * @this {String|string} - * @param {number} index - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt - */ -String.prototype.charAt = function(index) {}; - -/** - * Returns a number indicating the Unicode value of the character at the given - * index. - * - * @this {String|string} - * @param {number=} opt_index - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt - */ -String.prototype.charCodeAt = function(opt_index) {}; - -/** - * Combines the text of two or more strings and returns a new string. - * - * @this {String|string} - * @param {...*} var_args - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat - */ -String.prototype.concat = function(var_args) {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fixed - */ -String.prototype.fixed = function() {}; - -/** - * @this {String|string} - * @param {string} color - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fontcolor - */ -String.prototype.fontcolor = function(color) {}; - -/** - * @this {String|string} - * @param {number} size - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fontsize - */ -String.prototype.fontsize = function(size) {}; - -/** - * Returns the index within the calling String object of the first occurrence - * of the specified value, starting the search at fromIndex, returns -1 if the - * value is not found. - * - * @this {String|string} - * @param {string|null} searchValue - * @param {(number|null)=} opt_fromIndex - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf - */ -String.prototype.indexOf = function(searchValue, opt_fromIndex) {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/italics - */ -String.prototype.italics = function() {}; - -/** - * Returns the index within the calling String object of the last occurrence of - * the specified value, or -1 if not found. The calling string is searched - * backward, starting at fromIndex. - * - * @this {String|string} - * @param {string|null} searchValue - * @param {(number|null)=} opt_fromIndex - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf - */ -String.prototype.lastIndexOf = function(searchValue, opt_fromIndex) {}; - -/** - * @this {String|string} - * @param {string} hrefAttribute - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/link - */ -String.prototype.link = function(hrefAttribute) {}; - -/** - * Returns a number indicating whether a reference string comes before or after - * or is the same as the given string in sort order. - * - * @this {*} - * @param {?string} compareString - * @param {string|Array=} locales - * @param {Object=} options - * @return {number} - * @nosideeffects - * @see http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Objects/String/localeCompare - * @see http://www.ecma-international.org/ecma-402/1.0/#sec-13.1.1 - */ -String.prototype.localeCompare = function(compareString, locales, options) {}; - -/** - * Used to retrieve the matches when matching a string against a regular - * expression. - * - * @this {String|string} - * @param {*} regexp - * @return {Array} This should really return an Array with a few - * special properties, but we do not have a good way to model this in - * our type system. Also see Regexp.prototype.exec. - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match - */ -String.prototype.match = function(regexp) {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/quote - */ -String.prototype.quote = function() {}; - -/** - * Finds a match between a regular expression and a string, and replaces the - * matched substring with a new substring. - * - * This may have side-effects if the replacement function has side-effects. - * - * @this {String|string} - * @param {RegExp|string} pattern - * @param {string|Function} replacement - * @return {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace - */ -String.prototype.replace = function(pattern, replacement) {}; - -/** - * Executes the search for a match between a regular expression and this String - * object. - * - * @this {String|string} - * @param {RegExp|string} pattern - * @return {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/search - */ -String.prototype.search = function(pattern) {}; - -/** - * @this {String|string} - * @param {number} begin - * @param {number=} opt_end - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice - */ -String.prototype.slice = function(begin, opt_end) {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/small - */ -String.prototype.small = function() {}; - -/** - * @this {String|string} - * @param {*=} opt_separator - * @param {number=} opt_limit - * @return {!Array} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split - */ -String.prototype.split = function(opt_separator, opt_limit) {}; - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/strike - */ -String.prototype.strike = function() {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/sub - */ -String.prototype.sub = function() {}; - -/** - * @this {String|string} - * @param {number} start - * @param {number=} opt_length - * @return {string} The specified substring. - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr - */ -String.prototype.substr = function(start, opt_length) {}; - -/** - * @this {String|string} - * @param {number} start - * @param {number=} opt_end - * @return {string} The specified substring. - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring - */ -String.prototype.substring = function(start, opt_end) {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/sup - */ -String.prototype.sup = function() {}; - -/** - * @this {String|string} - * @param {(string|Array)=} opt_locales - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase - */ -String.prototype.toLocaleUpperCase = function(opt_locales) {}; - -/** - * @this {String|string} - * @param {(string|Array)=} opt_locales - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase - */ -String.prototype.toLocaleLowerCase = function(opt_locales) {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase - */ -String.prototype.toLowerCase = function() {}; - -/** - * @this {String|string} - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase - */ -String.prototype.toUpperCase = function() {}; - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toSource - * @override - */ -String.prototype.toSource = function() {}; - -/** - * @this {string|String} - * @return {string} - * @nosideeffects - * @override - */ -String.prototype.toString = function() {}; - -/** - * @return {string} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf - */ -String.prototype.valueOf; - -/** - * @type {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length - */ -String.prototype.length; - -/** - * @constructor - * @param {*=} opt_pattern - * @param {*=} opt_flags - * @return {!RegExp} - * @throws {SyntaxError} if opt_pattern is an invalid pattern. - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -function RegExp(opt_pattern, opt_flags) {} - -/** - * @param {*} pattern - * @param {*=} opt_flags - * @return {void} - * @modifies {this} - * @deprecated - * @see http://msdn.microsoft.com/en-us/library/x9cswe0z(v=VS.85).aspx - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/compile - */ -RegExp.prototype.compile = function(pattern, opt_flags) {}; - -/** - * @param {*} str The string to search. - * @return {?RegExpResult} - * @see http://msdn.microsoft.com/en-us/library/z908hy33(VS.85).aspx - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec - */ -RegExp.prototype.exec = function(str) {}; - -/** - * @param {*} str The string to search. - * @return {boolean} Whether the string was matched. - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test - */ -RegExp.prototype.test = function(str) {}; - -/** - * @this {RegExp} - * @return {string} - * @nosideeffects - * @override - */ -RegExp.prototype.toString = function() {}; - -/** - * @constructor - * @extends {Array} - */ -var RegExpResult = function() {}; - - -/** @type {number} */ -RegExpResult.prototype.index; - - -/** @type {string} */ -RegExpResult.prototype.input; - - -/** @type {number} */ -RegExpResult.prototype.length; - - -/** - * Not actually part of ES3; was added in 2018. - * https://github.com/tc39/proposal-regexp-named-groups - * - * @type {!Object} - */ -RegExpResult.prototype.groups; - - -// Constructor properties: - -/** - * The string against which the last regexp was matched. - * @type {string} - * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_input.html - */ -RegExp.input; - -/** - * The last matched characters. - * @type {string} - * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_lastMatch.html - */ -RegExp.lastMatch; - -/** - * The last matched parenthesized substring, if any. - * @type {string} - * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_lastParen.html - */ -RegExp.lastParen; - -/** - * The substring of the input up to the characters most recently matched. - * @type {string} - * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_leftContext.html - */ -RegExp.leftContext; - -/** - * The substring of the input after the characters most recently matched. - * @type {string} - * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_rightContext.html - */ -RegExp.rightContext; - -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -RegExp.$1; -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -RegExp.$2; -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -RegExp.$3; -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -RegExp.$4; -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -RegExp.$5; -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -RegExp.$6; -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -RegExp.$7; -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -RegExp.$8; -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp - */ -RegExp.$9; - -// Prototype properties: - -/** - * Whether to test the regular expression against all possible matches - * in a string, or only against the first. - * @type {boolean} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global - */ -RegExp.prototype.global; - -/** - * Whether to ignore case while attempting a match in a string. - * @type {boolean} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/ignoreCase - */ -RegExp.prototype.ignoreCase; - -/** - * The index at which to start the next match. - * @type {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex - */ -RegExp.prototype.lastIndex; - -/** - * Whether or not the regular expression uses lastIndex. - * @type {boolean} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky - */ -RegExp.prototype.sticky; - -/** - * Whether or not to search in strings across multiple lines. - * @type {boolean} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline - */ -RegExp.prototype.multiline; - -/** - * The text of the pattern. - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source - */ -RegExp.prototype.source; - -/** - * The flags the regex was created with. - * @type {string} - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags - */ -RegExp.prototype.flags; - -/** - * @constructor - * @param {*=} opt_message - * @param {*=} opt_file - * @param {*=} opt_line - * @return {!Error} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error - */ -function Error(opt_message, opt_file, opt_line) {} - - -/** - * Chrome/v8 specific, altering the maximum depth of the stack trace - * (10 by default). - * @type {number} - * @see http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi - */ -Error.stackTraceLimit; - - -/** - * Chrome/v8 specific, adds a stack trace to the error object. The optional - * constructorOpt parameter allows you to pass in a function value. When - * collecting the stack trace all frames above the topmost call to this - * function, including that call, will be left out of the stack trace. - * @param {Object} error The object to add the stack trace to. - * @param {Function=} opt_constructor A function in the stack trace - * @see http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi - * @return {undefined} - */ -Error.captureStackTrace = function(error, opt_constructor){}; - - -/** - * IE-only. - * @type {string} - * @see http://msdn.microsoft.com/en-us/library/2w6a45b5.aspx - */ -Error.prototype.description; - - -/** - * Mozilla-only. - * @type {number} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/lineNumber - */ -Error.prototype.lineNumber; - -/** - * Mozilla-only - * @type {string} - * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/fileName - */ -Error.prototype.fileName; - -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name - */ -Error.prototype.name; - -/** - * @type {string} - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/message - */ -Error.prototype.message; - -/** - * Doesn't seem to exist, but closure/debug.js references it. - */ -Error.prototype.sourceURL; - -/** @type {string} */ -Error.prototype.stack; - - -/** - * @constructor - * @extends {Error} - * @param {*=} opt_message - * @param {*=} opt_file - * @param {*=} opt_line - * @return {!EvalError} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError - */ -function EvalError(opt_message, opt_file, opt_line) {} - -/** - * @constructor - * @extends {Error} - * @param {*=} opt_message - * @param {*=} opt_file - * @param {*=} opt_line - * @return {!RangeError} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError - */ -function RangeError(opt_message, opt_file, opt_line) {} - -/** - * @constructor - * @extends {Error} - * @param {*=} opt_message - * @param {*=} opt_file - * @param {*=} opt_line - * @return {!ReferenceError} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError - */ -function ReferenceError(opt_message, opt_file, opt_line) {} - -/** - * @constructor - * @extends {Error} - * @param {*=} opt_message - * @param {*=} opt_file - * @param {*=} opt_line - * @return {!SyntaxError} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError - */ -function SyntaxError(opt_message, opt_file, opt_line) {} - -/** - * @constructor - * @extends {Error} - * @param {*=} opt_message - * @param {*=} opt_file - * @param {*=} opt_line - * @return {!TypeError} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError - */ -function TypeError(opt_message, opt_file, opt_line) {} - -/** - * @constructor - * @extends {Error} - * @param {*=} opt_message - * @param {*=} opt_file - * @param {*=} opt_line - * @return {!URIError} - * @nosideeffects - * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError - */ -function URIError(opt_message, opt_file, opt_line) {} - - -// JScript extensions. -// @see http://msdn.microsoft.com/en-us/library/894hfyb4(VS.80).aspx - -/** - * @see http://msdn.microsoft.com/en-us/library/7sw4ddf8.aspx - * @type {function(new:?, string, string=)} - */ -function ActiveXObject(progId, opt_location) {} diff --git a/extract/javascript/package-lock.json b/extract/javascript/package-lock.json deleted file mode 100644 index bc50c12db9..0000000000 --- a/extract/javascript/package-lock.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "name": "clj-kondo-js-arity-info", - "version": "0.0.1", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@babel/parser": { - "version": "7.9.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.6.tgz", - "integrity": "sha512-AoeIEJn8vt+d/6+PXDRPaksYhnlbMIiejioBZvvMQsOjW/JYK6k/0dKnvvP3EhK5GfMBWDPtrxRtegWdAcdq9Q==", - "dev": true - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true - }, - "catharsis": { - "version": "0.8.11", - "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.8.11.tgz", - "integrity": "sha512-a+xUyMV7hD1BrDQA/3iPV7oc+6W26BgVJO05PGEoatMyIuPScQKsde6i3YorWX1qs+AZjnJ18NqdKoCtKiNh1g==", - "dev": true, - "requires": { - "lodash": "^4.17.14" - } - }, - "entities": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", - "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", - "dev": true - }, - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "js2xmlparser": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.1.tgz", - "integrity": "sha512-KrPTolcw6RocpYjdC7pL7v62e55q7qOMHvLX1UCLc5AAS8qeJ6nukarEJAF2KL2PZxlbGueEbINqZR2bDe/gUw==", - "dev": true, - "requires": { - "xmlcreate": "^2.0.3" - } - }, - "jsdoc": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.4.tgz", - "integrity": "sha512-3G9d37VHv7MFdheviDCjUfQoIjdv4TC5zTTf5G9VODLtOnVS6La1eoYBDlbWfsRT3/Xo+j2MIqki2EV12BZfwA==", - "dev": true, - "requires": { - "@babel/parser": "^7.9.4", - "bluebird": "^3.7.2", - "catharsis": "^0.8.11", - "escape-string-regexp": "^2.0.0", - "js2xmlparser": "^4.0.1", - "klaw": "^3.0.0", - "markdown-it": "^10.0.0", - "markdown-it-anchor": "^5.2.7", - "marked": "^0.8.2", - "mkdirp": "^1.0.4", - "requizzle": "^0.2.3", - "strip-json-comments": "^3.1.0", - "taffydb": "2.6.2", - "underscore": "~1.10.2" - } - }, - "klaw": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", - "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "linkify-it": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.2.0.tgz", - "integrity": "sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==", - "dev": true, - "requires": { - "uc.micro": "^1.0.1" - } - }, - "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - }, - "markdown-it": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-10.0.0.tgz", - "integrity": "sha512-YWOP1j7UbDNz+TumYP1kpwnP0aEa711cJjrAQrzd0UXlbJfc5aAq0F/PZHjiioqDC1NKgvIMX+o+9Bk7yuM2dg==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "entities": "~2.0.0", - "linkify-it": "^2.0.0", - "mdurl": "^1.0.1", - "uc.micro": "^1.0.5" - } - }, - "markdown-it-anchor": { - "version": "5.2.7", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-5.2.7.tgz", - "integrity": "sha512-REFmIaSS6szaD1bye80DMbp7ePwsPNvLTR5HunsUcZ0SG0rWJQ+Pz24R4UlTKtjKBPhxo0v0tOBDYjZQQknW8Q==", - "dev": true - }, - "marked": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.8.2.tgz", - "integrity": "sha512-EGwzEeCcLniFX51DhTpmTom+dSA/MG/OBUDjnWtHbEnjAH180VzUeAw+oE4+Zv+CoYBWyRlYOTR0N8SO9R1PVw==", - "dev": true - }, - "mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=", - "dev": true - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, - "requizzle": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.3.tgz", - "integrity": "sha512-YanoyJjykPxGHii0fZP0uUPEXpvqfBDxWV7s6GKAiiOsiqhX6vHNyW3Qzdmqp/iq/ExbhaGbVrjB4ruEVSM4GQ==", - "dev": true, - "requires": { - "lodash": "^4.17.14" - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "strip-json-comments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz", - "integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==", - "dev": true - }, - "taffydb": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.6.2.tgz", - "integrity": "sha1-fLy2S1oUG2ou/CxdLGe04VCyomg=", - "dev": true - }, - "uc.micro": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", - "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", - "dev": true - }, - "underscore": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.10.2.tgz", - "integrity": "sha512-N4P+Q/BuyuEKFJ43B9gYuOj4TQUHXX+j2FqguVOpjkssLUUrnJofCcBccJSCoeturDoZU6GorDTHSvUDlSQbTg==", - "dev": true - }, - "xmlcreate": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.3.tgz", - "integrity": "sha512-HgS+X6zAztGa9zIK3Y3LXuJes33Lz9x+YyTxgrkIdabu2vqcGOWwdfCpf1hWLRrd553wd4QCDf6BBO6FfdsRiQ==", - "dev": true - } - } -} From 4c4ad1ef6cadc69b6d629ee92b175df45e6345ed Mon Sep 17 00:00:00 2001 From: Sameer Kolhar Date: Fri, 29 May 2020 23:47:13 +0530 Subject: [PATCH 5/5] add updated script to extract JSON --- extract/javascript/jsdoc-config.json | 3 ++ extract/javascript/package.json | 2 +- script/extract-js | 55 ++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 extract/javascript/jsdoc-config.json create mode 100755 script/extract-js diff --git a/extract/javascript/jsdoc-config.json b/extract/javascript/jsdoc-config.json new file mode 100644 index 0000000000..b412ffe671 --- /dev/null +++ b/extract/javascript/jsdoc-config.json @@ -0,0 +1,3 @@ +{ + "sourceType": "script" +} diff --git a/extract/javascript/package.json b/extract/javascript/package.json index f2c33fc9c5..ee4eba69af 100644 --- a/extract/javascript/package.json +++ b/extract/javascript/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "docs": "jsdoc es3.js -t templates/haruki -d console > es3-docs.json" + "gendoc": "jsdoc -c jsdoc-config.json es3.js -t templates/haruki -d console > es3-docs.json" }, "author": "", "license": "ISC", diff --git a/script/extract-js b/script/extract-js new file mode 100755 index 0000000000..cd6e640169 --- /dev/null +++ b/script/extract-js @@ -0,0 +1,55 @@ +#!/usr/bin/env bash + +# this script is to be run from the root of the project + +# might require version check, but current task would +# work with most node versions + +node --version 2> /dev/null + +if [ $? -eq 0 ] +then + echo "Awesome, you have node installed!" +else + echo "Please install node to run this script!" + exit 1 +fi + +# may not be required since most of the time node & npm +# are installed together at the time node installation + +npm --version 2> /dev/null + +if [ $? -eq 0 ] +then + echo "Awesome you have npm installed!" +else + echo "Please install npm to run this script!" + exit 1 +fi + +# install node_modules + +(if [ ! -d ./extract/javascript/node_modules/ ]; then + npm install --prefix ./extract/javascript/ +fi +) + +# cloning repo and extracting of information from the es3.js file + +(if [ ! -d ./extract/javascript/closure-compiler ]; then + git clone https://github.com/google/closure-compiler ./extract/javascript/closure-compiler + mv ./extract/javascript/closure-compiler/externs/es3.js ./extract/javascript/ + npm run gendoc --prefix ./extract/javascript/ +fi +) + +# FIXME: npm throws up an error on some versions. tested with v8(err), v10(err), v12 + +# you should have es3-doc.json created now + +# clean up + +rm -rf ./extract/javascript/closure-compiler +rm -rf ./extract/javascript/es3.js +rm -rf ./extract/javascript/node_modules