Debian Codegraph @

externs/es3.js

raw symbols SCIP
1 /*
2 * Copyright 2008 Closure Compiler Authors
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /**
18 * @fileoverview ECMAScript 3 Built-Ins. This include common extensions so this
19 * is actually ES3+Reality.
20 * @externs
21 */
22
23
24 // These built-ins are still needed for compilation.
25
26 /**
27 * @constructor
28 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments
29 */
30 function Arguments() {}
31
32 /**
33 * @type {Function}
34 * @see http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments/callee
35 */
36 Arguments.prototype.callee;
37
38 /**
39 * Use the non-standard {@see Function.prototype.caller} property of a function
40 * object instead.
41 * @type {Function}
42 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions/arguments/caller
43 * @deprecated
44 */
45 Arguments.prototype.caller;
46
47 /**
48 * @type {number}
49 * @see http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments/length
50 */
51 Arguments.prototype.length;
52
53 /**
54 * @type {!Arguments}
55 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions_and_function_scope/arguments
56 */
57 var arguments;
58
59 /**
60 * @type {number}
61 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Properties/Infinity
62 * @const
63 */
64 var Infinity;
65
66 /**
67 * @type {number}
68 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Properties/NaN
69 * @const
70 */
71 var NaN;
72
73 /**
74 * @type {undefined}
75 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Properties/undefined
76 * @const
77 */
78 var undefined;
79
80 /**
81 * @param {string} uri
82 * @return {string}
83 * @nosideeffects
84 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/decodeURI
85 */
86 function decodeURI(uri) {}
87
88 /**
89 * @param {string} uri
90 * @return {string}
91 * @nosideeffects
92 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/decodeURIComponent
93 */
94 function decodeURIComponent(uri) {}
95
96 /**
97 * @param {string} uri
98 * @return {string}
99 * @nosideeffects
100 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURI
101 */
102 function encodeURI(uri) {}
103
104 /**
105 * @param {string} uri
106 * @return {string}
107 * @nosideeffects
108 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/encodeURIComponent
109 */
110 function encodeURIComponent(uri) {}
111
112 /**
113 * Should only be used in browsers where encode/decodeURIComponent
114 * are not present, as the latter handle fancy Unicode characters.
115 * @param {string} str
116 * @return {string}
117 * @nosideeffects
118 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Predefined_Functions/escape_and_unescape_Functions
119 */
120 function escape(str) {}
121
122 /**
123 * Should only be used in browsers where encode/decodeURIComponent
124 * are not present, as the latter handle fancy Unicode characters.
125 * @param {string} str
126 * @return {string}
127 * @nosideeffects
128 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Predefined_Functions/escape_and_unescape_Functions
129 */
130 function unescape(str) {}
131
132 /**
133 * @param {*} num
134 * @return {boolean}
135 * @nosideeffects
136 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/isFinite
137 */
138 function isFinite(num) {}
139
140 /**
141 * @param {*} num
142 * @return {boolean}
143 * @nosideeffects
144 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/isNaN
145 */
146 function isNaN(num) {}
147
148 /**
149 * @param {*} num
150 * @return {number}
151 * @nosideeffects
152 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/parseFloat
153 */
154 function parseFloat(num) {}
155
156 /**
157 * Parse an integer. Use of {@code parseInt} without {@code base} is strictly
158 * banned in Google. If you really want to parse octal or hex based on the
159 * leader, then pass {@code undefined} as the base.
160 *
161 * @param {*} num
162 * @param {number|undefined} base
163 * @return {number}
164 * @nosideeffects
165 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/parseInt
166 */
167 function parseInt(num, base) {}
168
169 /**
170 * @param {string} code
171 * @return {*}
172 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/eval
173 */
174 function eval(code) {}
175
176 /**
177 * @constructor
178 * @param {*=} opt_value
179 * @nosideeffects
180 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object
181 */
182 function Object(opt_value) {}
183
184 /**
185 * The constructor of the current object.
186 * @type {Function}
187 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/constructor
188 */
189 Object.prototype.constructor = function() {};
190
191 /**
192 * Evaluates a string of JavaScript code in the context of the specified object.
193 * Considered deprecated.
194 *
195 * @param {string} code
196 * @return {Object}
197 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/eval
198 */
199 Object.prototype.eval = function(code) {};
200
201 /**
202 * Binds an object's property to a function to be called when that property is
203 * looked up.
204 * Mozilla-only.
205 *
206 * @param {string} sprop
207 * @param {Function} fun
208 * @modifies {this}
209 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/defineGetter
210 */
211 Object.prototype.__defineGetter__ = function(sprop, fun) {};
212
213 /**
214 * Binds an object's property to a function to be called when an attempt is made
215 * to set that property.
216 * Mozilla-only.
217 *
218 * @param {string} sprop
219 * @param {Function} fun
220 * @modifies {this}
221 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/defineSetter
222 */
223 Object.prototype.__defineSetter__ = function(sprop, fun) {};
224
225 /**
226 * Returns whether the object has a property with the specified name.
227 *
228 * @param {*} propertyName Implicitly cast to a string.
229 * @return {boolean}
230 * @nosideeffects
231 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/hasOwnProperty
232 */
233 Object.prototype.hasOwnProperty = function(propertyName) {};
234
235 /**
236 * Returns whether an object exists in another object's prototype chain.
237 *
238 * @param {Object} other
239 * @return {boolean}
240 * @nosideeffects
241 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/isPrototypeOf
242 */
243 Object.prototype.isPrototypeOf = function(other) {};
244
245 /**
246 * Return the function bound as a getter to the specified property.
247 * Mozilla-only.
248 *
249 * @param {string} sprop a string containing the name of the property whose
250 * getter should be returned
251 * @return {Function}
252 * @nosideeffects
253 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/lookupGetter
254 */
255 Object.prototype.__lookupGetter__ = function(sprop) {};
256
257 /**
258 * Return the function bound as a setter to the specified property.
259 * Mozilla-only.
260 *
261 * @param {string} sprop a string containing the name of the property whose
262 * setter should be returned.
263 * @return {Function}
264 * @nosideeffects
265 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/lookupSetter
266 */
267 Object.prototype.__lookupSetter__ = function(sprop) {};
268
269 /**
270 * Executes a function when a non-existent method is called on an object.
271 * Mozilla-only.
272 *
273 * @param {Function} fun
274 * @return {*}
275 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/noSuchMethod
276 */
277 Object.prototype.__noSuchMethod__ = function(fun) {};
278
279 /**
280 * Points to an object's context. For top-level objects, this is the e.g. window.
281 * Mozilla-only.
282 *
283 * @type {Object}
284 * @deprecated
285 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/parent
286 */
287 Object.prototype.__parent__;
288
289 /**
290 * Points to the object which was used as prototype when the object was instantiated.
291 * Mozilla-only.
292 *
293 * Will be null on Object.prototype.
294 *
295 * @type {Object}
296 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/proto
297 */
298 Object.prototype.__proto__;
299
300 /**
301 * Determine whether the specified property in an object can be enumerated by a
302 * for..in loop, with the exception of properties inherited through the
303 * prototype chain.
304 *
305 * @param {string} propertyName
306 * @return {boolean}
307 * @nosideeffects
308 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/propertyIsEnumerable
309 */
310 Object.prototype.propertyIsEnumerable = function(propertyName) {};
311
312 /**
313 * Returns a localized string representing the object.
314 * @return {string}
315 * @nosideeffects
316 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toLocaleString
317 */
318 Object.prototype.toLocaleString = function() {};
319
320 /**
321 * Returns a string representing the source code of the object.
322 * Mozilla-only.
323 * @return {string}
324 * @nosideeffects
325 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toSource
326 */
327 Object.prototype.toSource = function() {};
328
329 /**
330 * Returns a string representing the object.
331 * @this {*}
332 * @return {string}
333 * @nosideeffects
334 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString
335 */
336 Object.prototype.toString = function() {};
337
338 /**
339 * Removes a watchpoint set with the {@see Object.prototype.watch} method.
340 * Mozilla-only.
341 * @param {string} prop The name of a property of the object.
342 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/unwatch
343 */
344 Object.prototype.unwatch = function(prop) {};
345
346 /**
347 * Returns the object's {@code this} value.
348 * @return {*}
349 * @nosideeffects
350 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/valueOf
351 */
352 Object.prototype.valueOf = function() {};
353
354 /**
355 * Sets a watchpoint method.
356 * Mozilla-only.
357 * @param {string} prop The name of a property of the object.
358 * @param {Function} handler A function to call.
359 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/watch
360 */
361 Object.prototype.watch = function(prop, handler) {};
362
363
364 /**
365 * @constructor
366 * @param {...*} var_args
367 * @nosideeffects
368 * @throws {Error}
369 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function
370 */
371 function Function(var_args) {}
372
373 /**
374 * @param {...*} var_args
375 * @return {*}
376 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/call
377 */
378 Function.prototype.call = function(var_args) {};
379
380 /**
381 * @param {...*} var_args
382 * @return {*}
383 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/apply
384 */
385 Function.prototype.apply = function(var_args) {};
386
387 Function.prototype.arguments;
388
389 /**
390 * @type {number}
391 * @deprecated
392 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/arity
393 */
394 Function.prototype.arity;
395
396 /**
397 * Nonstandard; Mozilla and JScript only.
398 * @type {Function}
399 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/caller
400 */
401 Function.prototype.caller;
402
403 /**
404 * Expected number of arguments.
405 * @type {number}
406 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/length
407 */
408 Function.prototype.length;
409
410 /**
411 * @type {string}
412 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function/name
413 */
414 Function.prototype.name;
415
416 /**
417 * @this {Function}
418 * @return {string}
419 * @nosideeffects
420 * @override
421 */
422 Function.prototype.toString = function() {};
423
424
425 /**
426 * @constructor
427 * @param {...*} var_args
428 * @return {!Array}
429 * @nosideeffects
430 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array
431 */
432 function Array(var_args) {}
433
434 // Functions:
435
436 // TODO(nicksantos): Change @this {Object} to @this { {length: number} }
437
438
439 /**
440 * Returns a new array comprised of this array joined with other array(s)
441 * and/or value(s).
442 *
443 * @param {...*} var_args
444 * @return {!Array}
445 * @this {Object}
446 * @nosideeffects
447 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/concat
448 */
449 Array.prototype.concat = function(var_args) {};
450
451 /**
452 * Joins all elements of an array into a string.
453 *
454 * @param {*=} opt_separator Specifies a string to separate each element of the
455 * array. The separator is converted to a string if necessary. If omitted,
456 * the array elements are separated with a comma.
457 * @return {string}
458 * @this {Object}
459 * @nosideeffects
460 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/join
461 */
462 Array.prototype.join = function(opt_separator) {};
463
464 /**
465 * Removes the last element from an array and returns that element.
466 *
467 * @return {T}
468 * @this {{length: number}|Array.<T>}
469 * @modifies {this}
470 * @template T
471 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/pop
472 */
473 Array.prototype.pop = function() {};
474
475 /**
476 * Mutates an array by appending the given elements and returning the new
477 * length of the array.
478 *
479 * @param {...T} var_args
480 * @return {number} The new length of the array.
481 * @this {{length: number}|Array.<T>}
482 * @template T
483 * @modifies {this}
484 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/push
485 */
486 Array.prototype.push = function(var_args) {};
487
488 /**
489 * Transposes the elements of an array in place: the first array element becomes the
490 * last and the last becomes the first.
491 *
492 * @this {Object}
493 * @modifies {this}
494 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/reverse
495 */
496 Array.prototype.reverse = function() {};
497
498 /**
499 * Removes the first element from an array and returns that element. This
500 * method changes the length of the array.
501 *
502 * @this {{length: number}|Array.<T>}
503 * @modifies {this}
504 * @return {T}
505 * @template T
506 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/shift
507 */
508 Array.prototype.shift = function() {};
509
510 /**
511 * Extracts a section of an array and returns a new array.
512 *
513 * @param {*=} opt_begin Zero-based index at which to begin extraction. A
514 * non-number type will be auto-cast by the browser to a number.
515 * @param {*=} opt_end Zero-based index at which to end extraction. slice
516 * extracts up to but not including end.
517 * @return {!Array.<T>}
518 * @this {{length: number}|Array.<T>}
519 * @template T
520 * @nosideeffects
521 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/slice
522 */
523 Array.prototype.slice = function(opt_begin, opt_end) {};
524
525 /**
526 * Sorts the elements of an array in place.
527 *
528 * @param {function(T,T):number=} opt_compareFunction Specifies a function that
529 * defines the sort order.
530 * @this {{length: number}|Array.<T>}
531 * @template T
532 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/sort
533 */
534 Array.prototype.sort = function(opt_compareFunction) {};
535
536 /**
537 * Changes the content of an array, adding new elements while removing old
538 * elements.
539 *
540 * @param {*=} opt_index Index at which to start changing the array. If negative,
541 * will begin that many elements from the end. A non-number type will be
542 * auto-cast by the browser to a number.
543 * @param {*=} opt_howMany An integer indicating the number of old array elements
544 * to remove.
545 * @param {...T} var_args
546 * @return {!Array.<T>}
547 * @this {{length: number}|Array.<T>}
548 * @modifies {this}
549 * @template T
550 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/splice
551 */
552 Array.prototype.splice = function(opt_index, opt_howMany, var_args) {};
553
554 /**
555 * @return {string}
556 * @this {Object}
557 * @nosideeffects
558 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/toSource
559 */
560 Array.prototype.toSource;
561
562 /**
563 * @this {Array}
564 * @return {string}
565 * @nosideeffects
566 * @override
567 */
568 Array.prototype.toString = function() {};
569
570 /**
571 * Adds one or more elements to the beginning of an array and returns the new
572 * length of the array.
573 *
574 * @param {...*} var_args
575 * @return {number} The new length of the array
576 * @this {Object}
577 * @modifies {this}
578 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/unshift
579 */
580 Array.prototype.unshift = function(var_args) {};
581
582 /**
583 * Apply a function simultaneously against two values of the array (from
584 * left-to-right) as to reduce it to a single value.
585 *
586 * @param {?function(?, T, number, !Array.<T>) : R} callback
587 * @param {*=} opt_initialValue
588 * @return {R}
589 * @this {{length: number}|Array.<T>}
590 * @template T,R
591 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/reduce
592 */
593 Array.prototype.reduce = function(callback, opt_initialValue) {};
594
595 /**
596 * Apply a function simultaneously against two values of the array (from
597 * right-to-left) as to reduce it to a single value.
598 *
599 * @param {?function(?, T, number, !Array.<T>) : R} callback
600 * @param {*=} opt_initialValue
601 * @return {R}
602 * @this {{length: number}|Array.<T>}
603 * @template T,R
604 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/reduceRight
605 */
606 Array.prototype.reduceRight = function(callback, opt_initialValue) {};
607
608 /**
609 * Available in ECMAScript 5, Mozilla 1.6+.
610 * @param {?function(this:S, T, number, !Array.<T>): ?} callback
611 * @param {S=} opt_thisobj
612 * @return {boolean}
613 * @this {{length: number}|Array.<T>}
614 * @template T,S
615 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/every
616 */
617 Array.prototype.every = function(callback, opt_thisobj) {};
618
619 /**
620 * Available in ECMAScript 5, Mozilla 1.6+.
621 * @param {?function(this:S, T, number, !Array.<T>): ?} callback
622 * @param {S=} opt_thisobj
623 * @return {!Array.<T>}
624 * @this {{length: number}|Array.<T>}
625 * @template T,S
626 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/filter
627 */
628 Array.prototype.filter = function(callback, opt_thisobj) {};
629
630 /**
631 * Available in ECMAScript 5, Mozilla 1.6+.
632 * @param {?function(this:S, T, number, !Array.<T>): ?} callback
633 * @param {S=} opt_thisobj
634 * @this {{length: number}|Array.<T>}
635 * @template T,S
636 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/forEach
637 */
638 Array.prototype.forEach = function(callback, opt_thisobj) {};
639
640 /**
641 * Available in ECMAScript 5, Mozilla 1.6+.
642 * @param {T} obj
643 * @param {number=} opt_fromIndex
644 * @return {number}
645 * @this {{length: number}|Array.<T>}
646 * @nosideeffects
647 * @template T
648 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/indexOf
649 */
650 Array.prototype.indexOf = function(obj, opt_fromIndex) {};
651
652 /**
653 * Available in ECMAScript 5, Mozilla 1.6+.
654 * @param {T} obj
655 * @param {number=} opt_fromIndex
656 * @return {number}
657 * @this {{length: number}|Array.<T>}
658 * @nosideeffects
659 * @template T
660 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/lastIndexOf
661 */
662 Array.prototype.lastIndexOf = function(obj, opt_fromIndex) {};
663
664 /**
665 * Available in ECMAScript 5, Mozilla 1.6+.
666 * @param {?function(this:S, T, number, !Array.<T>): R} callback
667 * @param {S=} opt_thisobj
668 * @return {!Array.<R>}
669 * @this {{length: number}|Array.<T>}
670 * @template T,S,R
671 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/map
672 */
673 Array.prototype.map = function(callback, opt_thisobj) {};
674
675 /**
676 * Available in ECMAScript 5, Mozilla 1.6+.
677 * @param {?function(this:S, T, number, !Array.<T>): ?} callback
678 * @param {S=} opt_thisobj
679 * @return {boolean}
680 * @this {{length: number}|Array.<T>}
681 * @template T,S
682 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/some
683 */
684 Array.prototype.some = function(callback, opt_thisobj) {};
685
686 /**
687 * @type {number}
688 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/index
689 */
690 Array.prototype.index;
691
692 /**
693 * @type {?string}
694 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/input
695 */
696 Array.prototype.input;
697
698 /**
699 * @type {number}
700 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/length
701 */
702 Array.prototype.length;
703
704 /**
705 * @param {{length: number}|Array.<T>} arr
706 * @param {?function(this:S, T, number, ?) : ?} callback
707 * @param {S=} opt_context
708 * @return {boolean}
709 * @template T,S
710 */
711 Array.every = function(arr, callback, opt_context) {};
712
713 /**
714 * @param {{length: number}|Array.<T>} arr
715 * @param {?function(this:S, T, number, ?) : ?} callback
716 * @param {S=} opt_context
717 * @return {!Array}
718 * @template T,S
719 */
720 Array.filter = function(arr, callback, opt_context) {};
721
722 /**
723 * @param {{length: number}|Array.<T>} arr
724 * @param {?function(this:S, T, number, ?) : ?} callback
725 * @param {S=} opt_context
726 * @template T,S
727 */
728 Array.forEach = function(arr, callback, opt_context) {};
729
730 /**
731 * Mozilla 1.6+ only.
732 * @param {{length: number}|Array.<T>} arr
733 * @param {T} obj
734 * @param {number=} opt_fromIndex
735 * @return {number}
736 * @template T
737 * @nosideeffects
738 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/indexOf
739 */
740 Array.indexOf = function(arr, obj, opt_fromIndex) {};
741
742 /**
743 * Mozilla 1.6+ only.
744 * @param {{length: number}|Array.<T>} arr
745 * @param {T} obj
746 * @param {number=} opt_fromIndex
747 * @return {number}
748 * @template T
749 * @nosideeffects
750 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/lastIndexOf
751 */
752 Array.lastIndexOf = function(arr, obj, opt_fromIndex) {};
753
754 /**
755 * @param {{length: number}|Array.<T>} arr
756 * @param {?function(this:S, T, number, !Array.<T>): R} callback
757 * @param {S=} opt_context
758 * @return {!Array.<R>}
759 * @template T,S,R
760 */
761 Array.map = function(arr, callback, opt_context) {};
762
763 /**
764 * @param {{length: number}|Array.<T>} arr
765 * @param {function(?, T, number, Array) : R} callback
766 * @param {?=} opt_initialValue
767 * @return {R}
768 * @template T,R
769 */
770 Array.reduce = function(arr, callback, opt_initialValue) {};
771
772 /**
773 * @param {{length: number}|Array.<T>} arr
774 * @param {function(?, T, number, Array) : R} callback
775 * @param {?=} opt_initialValue
776 * @return {R}
777 * @template T,R
778 */
779 Array.reduceRight = function(arr, callback, opt_initialValue) {};
780
781 /**
782 * @param {{length: number}|Array.<T>} arr
783 * @param {?function(this:S, T, number, ?) : ?} callback
784 * @param {S=} opt_context
785 * @return {boolean}
786 * @template T,S
787 */
788 Array.some = function(arr, callback, opt_context) {};
789
790 /**
791 * Introduced in 1.8.5.
792 * @param {*} arr
793 * @return {boolean}
794 * @see http://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray
795 */
796 Array.isArray = function(arr) {};
797
798 /**
799 * @constructor
800 * @param {*=} opt_value
801 * @return {boolean}
802 * @nosideeffects
803 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean
804 */
805 function Boolean(opt_value) {}
806
807 /**
808 * @return {string}
809 * @nosideeffects
810 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean/toSource
811 * @override
812 */
813 Boolean.prototype.toSource = function() {};
814
815 /**
816 * @this {boolean|Boolean}
817 * @return {string}
818 * @nosideeffects
819 * @override
820 */
821 Boolean.prototype.toString = function() {};
822
823 /**
824 * @constructor
825 * @param {*=} opt_value
826 * @return {number}
827 * @nosideeffects
828 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number
829 */
830 function Number(opt_value) {}
831
832 /**
833 * @param {number=} opt_fractionDigits
834 * @return {string}
835 * @nosideeffects
836 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toExponential
837 */
838 Number.prototype.toExponential = function(opt_fractionDigits) {};
839
840 /**
841 * @param {*=} opt_digits
842 * @return {string}
843 * @nosideeffects
844 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toFixed
845 */
846 Number.prototype.toFixed = function(opt_digits) {};
847
848 /**
849 * @param {number=} opt_precision
850 * @return {string}
851 * @nosideeffects
852 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toPrecision
853 */
854 Number.prototype.toPrecision = function(opt_precision) {};
855
856 /**
857 * Returns a string representing the number.
858 * @param {(number|Number)=} opt_radix An optional radix.
859 * @return {string}
860 * @nosideeffects
861 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/toString
862 * @override
863 */
864 Number.prototype.toString = function(opt_radix) {};
865
866 // Properties.
867 /**
868 * @type {number}
869 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/MAX_VALUE
870 */
871 Number.MAX_VALUE;
872
873 /**
874 * @type {number}
875 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/MIN_VALUE
876 */
877 Number.MIN_VALUE;
878
879 /**
880 * @type {number}
881 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/NaN
882 */
883 Number.NaN;
884
885 /**
886 * @type {number}
887 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/NEGATIVE_INFINITY
888 */
889 Number.NEGATIVE_INFINITY;
890
891 /**
892 * @type {number}
893 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number/POSITIVE_INFINITY
894 */
895 Number.POSITIVE_INFINITY;
896
897
898 /**
899 * @const
900 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math
901 */
902 var Math = {};
903
904 /**
905 * @param {*} x
906 * @return {number}
907 * @nosideeffects
908 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/abs
909 */
910 Math.abs = function(x) {};
911
912 /**
913 * @param {*} x
914 * @return {number}
915 * @nosideeffects
916 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/acos
917 */
918 Math.acos = function(x) {};
919
920 /**
921 * @param {*} x
922 * @return {number}
923 * @nosideeffects
924 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/asin
925 */
926 Math.asin = function(x) {};
927
928 /**
929 * @param {*} x
930 * @return {number}
931 * @nosideeffects
932 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/atan
933 */
934 Math.atan = function(x) {};
935
936 /**
937 * @param {*} y
938 * @param {*} x
939 * @return {number}
940 * @nosideeffects
941 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/atan2
942 */
943 Math.atan2 = function(y, x) {};
944
945 /**
946 * @param {*} x
947 * @return {number}
948 * @nosideeffects
949 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/ceil
950 */
951 Math.ceil = function(x) {};
952
953 /**
954 * @param {*} x
955 * @return {number}
956 * @nosideeffects
957 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/cos
958 */
959 Math.cos = function(x) {};
960
961 /**
962 * @param {*} x
963 * @return {number}
964 * @nosideeffects
965 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/exp
966 */
967 Math.exp = function(x) {};
968
969 /**
970 * @param {*} x
971 * @return {number}
972 * @nosideeffects
973 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/floor
974 */
975 Math.floor = function(x) {};
976
977 /**
978 * @param {*} x
979 * @return {number}
980 * @nosideeffects
981 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/log
982 */
983 Math.log = function(x) {};
984
985 /**
986 * @param {...*} var_args
987 * @return {number}
988 * @nosideeffects
989 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/max
990 */
991 Math.max = function(var_args) {};
992
993 /**
994 * @param {...*} var_args
995 * @return {number}
996 * @nosideeffects
997 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/min
998 */
999 Math.min = function(var_args) {};
1000
1001 /**
1002 * @param {*} x
1003 * @param {*} y
1004 * @return {number}
1005 * @nosideeffects
1006 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/pow
1007 */
1008 Math.pow = function(x, y) {};
1009
1010 /**
1011 * @return {number}
1012 * @nosideeffects
1013 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/random
1014 */
1015 Math.random = function() {};
1016
1017 /**
1018 * @param {*} x
1019 * @return {number}
1020 * @nosideeffects
1021 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/round
1022 */
1023 Math.round = function(x) {};
1024
1025 /**
1026 * @param {*} x
1027 * @return {number}
1028 * @nosideeffects
1029 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/sin
1030 */
1031 Math.sin = function(x) {};
1032
1033 /**
1034 * @param {*} x
1035 * @return {number}
1036 * @nosideeffects
1037 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/sqrt
1038 */
1039 Math.sqrt = function(x) {};
1040
1041 /**
1042 * @param {*} x
1043 * @return {number}
1044 * @nosideeffects
1045 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/tan
1046 */
1047 Math.tan = function(x) {};
1048
1049 /**
1050 * @return {string}
1051 * @nosideeffects
1052 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/toSource
1053 */
1054 Math.toSource = function() {};
1055
1056 // Properties:
1057
1058 /**
1059 * @type {number}
1060 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/E
1061 */
1062 Math.E;
1063
1064 /**
1065 * @type {number}
1066 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/LN2
1067 */
1068 Math.LN2;
1069
1070 /**
1071 * @type {number}
1072 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/LN10
1073 */
1074 Math.LN10;
1075
1076 /**
1077 * @type {number}
1078 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/LOG2E
1079 */
1080 Math.LOG2E;
1081
1082 /**
1083 * @type {number}
1084 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/LOG10E
1085 */
1086 Math.LOG10E;
1087
1088 /**
1089 * @type {number}
1090 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/PI
1091 */
1092 Math.PI;
1093
1094 /**
1095 * @type {number}
1096 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/SQRT1_2
1097 */
1098 Math.SQRT1_2;
1099
1100 /**
1101 * @type {number}
1102 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Math/SQRT2
1103 */
1104 Math.SQRT2;
1105
1106
1107 /**
1108 * @param {?=} opt_yr_num
1109 * @param {?=} opt_mo_num
1110 * @param {?=} opt_day_num
1111 * @param {?=} opt_hr_num
1112 * @param {?=} opt_min_num
1113 * @param {?=} opt_sec_num
1114 * @param {?=} opt_ms_num
1115 * @constructor
1116 * @return {string}
1117 * @nosideeffects
1118 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date
1119 */
1120 function Date(opt_yr_num, opt_mo_num, opt_day_num, opt_hr_num, opt_min_num,
1121 opt_sec_num, opt_ms_num) {}
1122
1123 /**
1124 * @return {number}
1125 * @nosideeffects
1126 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/now
1127 */
1128 Date.now = function() {};
1129
1130 /**
1131 * Parses a string representation of a date, and returns the number
1132 * of milliseconds since January 1, 1970, 00:00:00, local time.
1133 * @param {*} date
1134 * @return {number}
1135 * @nosideeffects
1136 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/parse
1137 */
1138 Date.parse = function(date) {};
1139
1140 /**
1141 * @param {number} year
1142 * @param {number} month
1143 * @param {number=} opt_date
1144 * @param {number=} opt_hours
1145 * @param {number=} opt_minute
1146 * @param {number=} opt_second
1147 * @param {number=} opt_ms
1148 * @return {number}
1149 * @nosideeffects
1150 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/UTC
1151 */
1152 Date.UTC = function(year, month,
1153 opt_date, opt_hours, opt_minute, opt_second, opt_ms) {};
1154
1155 /**
1156 * @return {number}
1157 * @nosideeffects
1158 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getDate
1159 */
1160 Date.prototype.getDate = function() {};
1161
1162 /**
1163 * @return {number}
1164 * @nosideeffects
1165 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getDay
1166 */
1167 Date.prototype.getDay = function() {};
1168
1169 /**
1170 * @return {number}
1171 * @nosideeffects
1172 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMonth
1173 */
1174 Date.prototype.getMonth = function() {};
1175
1176 /**
1177 * @return {number}
1178 * @nosideeffects
1179 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getFullYear
1180 */
1181 Date.prototype.getFullYear = function() {};
1182
1183 /**
1184 * @return {number}
1185 * @nosideeffects
1186 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getYear
1187 */
1188 Date.prototype.getYear = function() {};
1189
1190 /**
1191 * @return {number}
1192 * @nosideeffects
1193 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getHours
1194 */
1195 Date.prototype.getHours = function() {};
1196
1197 /**
1198 * @return {number}
1199 * @nosideeffects
1200 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMinutes
1201 */
1202 Date.prototype.getMinutes = function() {};
1203
1204 /**
1205 * @return {number}
1206 * @nosideeffects
1207 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getSeconds
1208 */
1209 Date.prototype.getSeconds = function() {};
1210
1211 /**
1212 * @return {number}
1213 * @nosideeffects
1214 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMilliseconds
1215 */
1216 Date.prototype.getMilliseconds = function() {};
1217
1218 /**
1219 * @return {number}
1220 * @nosideeffects
1221 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getTime
1222 */
1223 Date.prototype.getTime = function() {};
1224
1225 /**
1226 * @return {number}
1227 * @nosideeffects
1228 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getTimezoneOffset
1229 */
1230 Date.prototype.getTimezoneOffset = function() {};
1231
1232 /**
1233 * @return {number}
1234 * @nosideeffects
1235 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCDate
1236 */
1237 Date.prototype.getUTCDate = function() {};
1238
1239 /**
1240 * @return {number}
1241 * @nosideeffects
1242 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCDay
1243 */
1244 Date.prototype.getUTCDay = function() {};
1245
1246 /**
1247 * @return {number}
1248 * @nosideeffects
1249 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCMonth
1250 */
1251 Date.prototype.getUTCMonth = function() {};
1252
1253 /**
1254 * @return {number}
1255 * @nosideeffects
1256 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCFullYear
1257 */
1258 Date.prototype.getUTCFullYear = function() {};
1259
1260 /**
1261 * @return {number}
1262 * @nosideeffects
1263 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCHours
1264 */
1265 Date.prototype.getUTCHours = function() {};
1266
1267 /**
1268 * @return {number}
1269 * @nosideeffects
1270 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCMinutes
1271 */
1272 Date.prototype.getUTCMinutes = function() {};
1273
1274 /**
1275 * @return {number}
1276 * @nosideeffects
1277 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCSeconds
1278 */
1279 Date.prototype.getUTCSeconds = function() {};
1280
1281 /**
1282 * @return {number}
1283 * @nosideeffects
1284 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCMilliseconds
1285 */
1286 Date.prototype.getUTCMilliseconds = function() {};
1287
1288 /**
1289 * Sets the day of the month for a specified date according to local time.
1290 *
1291 * @param {number} dayValue
1292 * @modifies {this}
1293 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setDate
1294 */
1295 Date.prototype.setDate = function(dayValue) {};
1296
1297 /**
1298 * Set the month for a specified date according to local time.
1299 *
1300 * @param {number} monthValue
1301 * @param {number=} opt_dayValue
1302 * @modifies {this}
1303 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setMonth
1304 */
1305 Date.prototype.setMonth = function(monthValue, opt_dayValue) {};
1306
1307 /**
1308 * Sets the full year for a specified date according to local time.
1309 *
1310 * @param {number} yearValue
1311 * @param {number=} opt_monthValue
1312 * @param {number=} opt_dayValue
1313 * @modifies {this}
1314 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setFullYear
1315 */
1316 Date.prototype.setFullYear =
1317 function(yearValue, opt_monthValue, opt_dayValue) {};
1318
1319 /**
1320 * Sets the year for a specified date according to local time.
1321 *
1322 * @param {number} yearValue
1323 * @deprecated
1324 * @modifies {this}
1325 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setYear
1326 */
1327 Date.prototype.setYear = function(yearValue) {};
1328
1329 /**
1330 * Sets the hours for a specified date according to local time.
1331 *
1332 * @param {number} hoursValue
1333 * @param {number=} opt_minutesValue
1334 * @param {number=} opt_secondsValue
1335 * @param {number=} opt_msValue
1336 * @modifies {this}
1337 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setHours
1338 */
1339 Date.prototype.setHours = function(hoursValue, opt_minutesValue,
1340 opt_secondsValue, opt_msValue) {};
1341
1342 /**
1343 * Sets the minutes for a specified date according to local time.
1344 *
1345 * @param {number} minutesValue
1346 * @param {number=} opt_secondsValue
1347 * @param {number=} opt_msValue
1348 * @modifies {this}
1349 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setMinutes
1350 */
1351 Date.prototype.setMinutes =
1352 function(minutesValue, opt_secondsValue, opt_msValue) {};
1353
1354 /**
1355 * Sets the seconds for a specified date according to local time.
1356 *
1357 * @param {number} secondsValue
1358 * @param {number=} opt_msValue
1359 * @modifies {this}
1360 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setSeconds
1361 */
1362 Date.prototype.setSeconds = function(secondsValue, opt_msValue) {};
1363
1364 /**
1365 * Sets the milliseconds for a specified date according to local time.
1366 *
1367 * @param {number} millisecondsValue
1368 * @modifies {this}
1369 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setMilliseconds
1370 */
1371 Date.prototype.setMilliseconds = function(millisecondsValue) {};
1372
1373 /**
1374 * Sets the Date object to the time represented by a number of milliseconds
1375 * since January 1, 1970, 00:00:00 UTC.
1376 *
1377 * @param {number} timeValue
1378 * @modifies {this}
1379 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setTime
1380 */
1381 Date.prototype.setTime = function(timeValue) {};
1382
1383 /**
1384 * Sets the day of the month for a specified date according to universal time.
1385 *
1386 * @param {number} dayValue
1387 * @modifies {this}
1388 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCDate
1389 */
1390 Date.prototype.setUTCDate = function(dayValue) {};
1391
1392 /**
1393 * Sets the month for a specified date according to universal time.
1394 *
1395 * @param {number} monthValue
1396 * @param {number=} opt_dayValue
1397 * @modifies {this}
1398 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCMonth
1399 */
1400 Date.prototype.setUTCMonth = function(monthValue, opt_dayValue) {};
1401
1402 /**
1403 * Sets the full year for a specified date according to universal time.
1404 *
1405 * @param {number} yearValue
1406 * @param {number=} opt_monthValue
1407 * @param {number=} opt_dayValue
1408 * @modifies {this}
1409 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCFullYear
1410 */
1411 Date.prototype.setUTCFullYear = function(yearValue, opt_monthValue,
1412 opt_dayValue) {};
1413
1414 /**
1415 * Sets the hour for a specified date according to universal time.
1416 *
1417 * @param {number} hoursValue
1418 * @param {number=} opt_minutesValue
1419 * @param {number=} opt_secondsValue
1420 * @param {number=} opt_msValue
1421 * @modifies {this}
1422 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCHours
1423 */
1424 Date.prototype.setUTCHours = function(hoursValue, opt_minutesValue,
1425 opt_secondsValue, opt_msValue) {};
1426
1427 /**
1428 * Sets the minutes for a specified date according to universal time.
1429 *
1430 * @param {number} minutesValue
1431 * @param {number=} opt_secondsValue
1432 * @param {number=} opt_msValue
1433 * @modifies {this}
1434 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCMinutes
1435 */
1436 Date.prototype.setUTCMinutes = function(minutesValue, opt_secondsValue,
1437 opt_msValue) {};
1438
1439
1440 /**
1441 * Sets the seconds for a specified date according to universal time.
1442 *
1443 * @param {number} secondsValue
1444 * @param {number=} opt_msValue
1445 * @modifies {this}
1446 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCSeconds
1447 */
1448 Date.prototype.setUTCSeconds = function(secondsValue, opt_msValue) {};
1449
1450 /**
1451 * Sets the milliseconds for a specified date according to universal time.
1452 *
1453 * @param {number} millisecondsValue
1454 * @modifies {this}
1455 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCMilliseconds
1456 */
1457 Date.prototype.setUTCMilliseconds = function(millisecondsValue) {};
1458
1459 /**
1460 * @return {string}
1461 * @nosideeffects
1462 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toSource
1463 * @override
1464 */
1465 Date.prototype.toSource = function() {};
1466
1467 /**
1468 * @return {string}
1469 * @nosideeffects
1470 * @see http://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toDateString
1471 */
1472 Date.prototype.toDateString = function() {};
1473
1474 /**
1475 * @return {string}
1476 * @nosideeffects
1477 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toGMTString
1478 */
1479 Date.prototype.toGMTString = function() {};
1480
1481 /**
1482 * @return {string}
1483 * @nosideeffects
1484 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toTimeString
1485 */
1486 Date.prototype.toTimeString = function() {};
1487
1488 /**
1489 * @return {string}
1490 * @nosideeffects
1491 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toUTCString
1492 */
1493 Date.prototype.toUTCString = function() {};
1494
1495 /**
1496 * @return {string}
1497 * @nosideeffects
1498 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleDateString
1499 */
1500 Date.prototype.toLocaleDateString = function() {};
1501
1502 /**
1503 * @param {string} formatString
1504 * @return {string}
1505 * @nosideeffects
1506 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleFormat
1507 */
1508 Date.prototype.toLocaleFormat = function(formatString) {};
1509
1510 /**
1511 * @return {string}
1512 * @nosideeffects
1513 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString
1514 * @override
1515 */
1516 Date.prototype.toLocaleString = function() {};
1517
1518 /**
1519 * @return {string}
1520 * @nosideeffects
1521 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleTimeString
1522 */
1523 Date.prototype.toLocaleTimeString = function() {};
1524
1525 /**
1526 * @this {Date}
1527 * @return {string}
1528 * @nosideeffects
1529 * @override
1530 */
1531 Date.prototype.toString = function() {};
1532
1533 /**
1534 * @return {number}
1535 * @nosideeffects
1536 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/valueOf
1537 */
1538 Date.prototype.valueOf;
1539
1540 /**
1541 * @constructor
1542 * @param {*=} opt_str
1543 * @return {string}
1544 * @nosideeffects
1545 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String
1546 */
1547 function String(opt_str) {}
1548 // Functions:
1549
1550 /**
1551 * @param {...number} var_args
1552 * @return {string}
1553 * @nosideeffects
1554 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/fromCharCode
1555 */
1556 String.fromCharCode = function(var_args) {};
1557
1558 /**
1559 * @return {string}
1560 * @nosideeffects
1561 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/anchor
1562 */
1563 String.prototype.anchor = function() {};
1564
1565 /**
1566 * @return {string}
1567 * @nosideeffects
1568 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/big
1569 */
1570 String.prototype.big = function() {};
1571
1572 /**
1573 * @return {string}
1574 * @nosideeffects
1575 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/blink
1576 */
1577 String.prototype.blink = function() {};
1578
1579 /**
1580 * @return {string}
1581 * @nosideeffects
1582 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/bold
1583 */
1584 String.prototype.bold = function() {};
1585
1586 /**
1587 * Returns the specified character from a string.
1588 *
1589 * @param {number} index
1590 * @return {string}
1591 * @nosideeffects
1592 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/charAt
1593 */
1594 String.prototype.charAt = function(index) {};
1595
1596 /**
1597 * Returns a number indicating the Unicode value of the character at the given
1598 * index.
1599 *
1600 * @param {number=} opt_index
1601 * @return {number}
1602 * @nosideeffects
1603 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/charCodeAt
1604 */
1605 String.prototype.charCodeAt = function(opt_index) {};
1606
1607 /**
1608 * Combines the text of two or more strings and returns a new string.
1609 *
1610 * @param {...*} var_args
1611 * @return {string}
1612 * @nosideeffects
1613 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/concat
1614 */
1615 String.prototype.concat = function(var_args) {};
1616
1617 /**
1618 * @return {string}
1619 * @nosideeffects
1620 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/fixed
1621 */
1622 String.prototype.fixed = function() {};
1623
1624 /**
1625 * @param {string} color
1626 * @return {string}
1627 * @nosideeffects
1628 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/fontcolor
1629 */
1630 String.prototype.fontcolor = function(color) {};
1631
1632 /**
1633 * @param {number} size
1634 * @return {string}
1635 * @nosideeffects
1636 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/fontsize
1637 */
1638 String.prototype.fontsize = function(size) {};
1639
1640 /**
1641 * Returns the index within the calling String object of the first occurrence
1642 * of the specified value, starting the search at fromIndex, returns -1 if the
1643 * value is not found.
1644 *
1645 * @param {string|null} searchValue
1646 * @param {(number|null)=} opt_fromIndex
1647 * @return {number}
1648 * @nosideeffects
1649 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/indexOf
1650 */
1651 String.prototype.indexOf = function(searchValue, opt_fromIndex) {};
1652
1653 /**
1654 * @return {string}
1655 * @nosideeffects
1656 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/italics
1657 */
1658 String.prototype.italics = function() {};
1659
1660 /**
1661 * Returns the index within the calling String object of the last occurrence of
1662 * the specified value, or -1 if not found. The calling string is searched
1663 * backward, starting at fromIndex.
1664 *
1665 * @param {string|null} searchValue
1666 * @param {(number|null)=} opt_fromIndex
1667 * @return {number}
1668 * @nosideeffects
1669 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/lastIndexOf
1670 */
1671 String.prototype.lastIndexOf = function(searchValue, opt_fromIndex) {};
1672
1673 /**
1674 * @param {string} hrefAttribute
1675 * @return {string}
1676 * @nosideeffects
1677 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/link
1678 */
1679 String.prototype.link = function(hrefAttribute) {};
1680
1681 /**
1682 * Returns a number indicating whether a reference string comes before or after
1683 * or is the same as the given string in sort order.
1684 *
1685 * @this {*}
1686 * @param {*} other
1687 * @return {number}
1688 * @nosideeffects
1689 * @see http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Objects/String/Prototype
1690 */
1691 String.prototype.localeCompare = function(other) {};
1692
1693 /**
1694 * Used to retrieve the matches when matching a string against a regular
1695 * expression.
1696 *
1697 * @param {*} regexp
1698 * @return {Array.<string>} This should really return an Array with a few
1699 * special properties, but we do not have a good way to model this in
1700 * our type system. Also see Regexp.prototype.exec.
1701 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/match
1702 */
1703 String.prototype.match = function(regexp) {};
1704
1705 /**
1706 * @return {string}
1707 * @nosideeffects
1708 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/quote
1709 */
1710 String.prototype.quote = function() {};
1711
1712 /**
1713 * Finds a match between a regular expression and a string, and replaces the
1714 * matched substring with a new substring.
1715 *
1716 * This may have side-effects if the replacement function has side-effects.
1717 *
1718 * @param {RegExp|string} regex
1719 * @param {string|Function} str
1720 * @param {string=} opt_flags
1721 * @return {string}
1722 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replace
1723 */
1724 String.prototype.replace = function(regex, str, opt_flags) {};
1725
1726 /**
1727 * Executes the search for a match between a regular expression and this String
1728 * object.
1729 *
1730 * @param {RegExp|string} regexp
1731 * @return {number}
1732 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/search
1733 */
1734 String.prototype.search = function(regexp) {};
1735
1736 /**
1737 * @param {number} begin
1738 * @param {number=} opt_end
1739 * @return {string}
1740 * @nosideeffects
1741 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/slice
1742 */
1743 String.prototype.slice = function(begin, opt_end) {};
1744
1745 /**
1746 * @return {string}
1747 * @nosideeffects
1748 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/small
1749 */
1750 String.prototype.small = function() {};
1751
1752 /**
1753 * @param {*=} opt_separator
1754 * @param {number=} opt_limit
1755 * @return {!Array.<string>}
1756 * @nosideeffects
1757 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/split
1758 */
1759 String.prototype.split = function(opt_separator, opt_limit) {};
1760
1761 /**
1762 * @return {string}
1763 * @nosideeffects
1764 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/strike
1765 */
1766 String.prototype.strike = function() {};
1767
1768 /**
1769 * @return {string}
1770 * @nosideeffects
1771 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/sub
1772 */
1773 String.prototype.sub = function() {};
1774
1775 /**
1776 * @param {number} start
1777 * @param {number=} opt_length
1778 * @return {string} The specified substring.
1779 * @nosideeffects
1780 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/substr
1781 */
1782 String.prototype.substr = function(start, opt_length) {};
1783
1784 /**
1785 * @param {number} start
1786 * @param {number=} opt_end
1787 * @return {string} The specified substring.
1788 * @nosideeffects
1789 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/substring
1790 */
1791 String.prototype.substring = function(start, opt_end) {};
1792
1793 /**
1794 * @return {string}
1795 * @nosideeffects
1796 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/sup
1797 */
1798 String.prototype.sup = function() {};
1799
1800 /**
1801 * @return {string}
1802 * @nosideeffects
1803 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLocaleUpperCase
1804 */
1805 String.prototype.toLocaleUpperCase = function() {};
1806
1807 /**
1808 * @return {string}
1809 * @nosideeffects
1810 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLocaleLowerCase
1811 */
1812 String.prototype.toLocaleLowerCase = function() {};
1813
1814 /**
1815 * @return {string}
1816 * @nosideeffects
1817 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase
1818 */
1819 String.prototype.toLowerCase = function() {};
1820
1821 /**
1822 * @return {string}
1823 * @nosideeffects
1824 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/toUpperCase
1825 */
1826 String.prototype.toUpperCase = function() {};
1827
1828 /**
1829 * @return {string}
1830 * @nosideeffects
1831 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/toSource
1832 * @override
1833 */
1834 String.prototype.toSource = function() {};
1835
1836 /**
1837 * @this {string|String}
1838 * @return {string}
1839 * @nosideeffects
1840 * @override
1841 */
1842 String.prototype.toString = function() {};
1843
1844 /**
1845 * @return {string}
1846 * @nosideeffects
1847 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/valueOf
1848 */
1849 String.prototype.valueOf;
1850
1851 /**
1852 * @type {number}
1853 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/length
1854 */
1855 String.prototype.length;
1856
1857 /**
1858 * @constructor
1859 * @param {*=} opt_pattern
1860 * @param {*=} opt_flags
1861 * @return {!RegExp}
1862 * @nosideeffects
1863 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1864 */
1865 function RegExp(opt_pattern, opt_flags) {}
1866
1867 /**
1868 * @param {*} pattern
1869 * @param {*=} opt_flags
1870 * @return {void}
1871 * @modifies {this}
1872 * @deprecated
1873 * @see http://msdn.microsoft.com/en-us/library/x9cswe0z(v=VS.85).aspx
1874 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/compile
1875 */
1876 RegExp.prototype.compile = function(pattern, opt_flags) {};
1877
1878 /**
1879 * @param {*} str The string to search.
1880 * @return {Array.<string>} This should really return an Array with a few
1881 * special properties, but we do not have a good way to model this in
1882 * our type system. Also see String.prototype.match.
1883 * @see http://msdn.microsoft.com/en-us/library/z908hy33(VS.85).aspx
1884 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/exec
1885 */
1886 RegExp.prototype.exec = function(str) {};
1887
1888 /**
1889 * @param {*} str The string to search.
1890 * @return {boolean} Whether the string was matched.
1891 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/test
1892 */
1893 RegExp.prototype.test = function(str) {};
1894
1895 /**
1896 * @this {RegExp}
1897 * @return {string}
1898 * @nosideeffects
1899 * @override
1900 */
1901 RegExp.prototype.toString = function() {};
1902
1903 // Constructor properties:
1904
1905 /**
1906 * The string against which the last regexp was matched.
1907 * @type {string}
1908 * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_input.html
1909 */
1910 RegExp.input;
1911
1912 /**
1913 * The last matched characters.
1914 * @type {Array}
1915 * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_lastMatch.html
1916 */
1917 RegExp.lastMatch;
1918
1919 /**
1920 * The last matched parenthesized substring, if any.
1921 * @type {string}
1922 * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_lastParen.html
1923 */
1924 RegExp.lastParen;
1925
1926 /**
1927 * The substring of the input up to the characters most recently matched.
1928 * @type {string}
1929 * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_leftContext.html
1930 */
1931 RegExp.leftContext;
1932
1933 /**
1934 * The substring of the input after the characters most recently matched.
1935 * @type {string}
1936 * @see http://www.devguru.com/Technologies/Ecmascript/Quickref/regexp_rightContext.html
1937 */
1938 RegExp.rightContext;
1939
1940 /**
1941 * @type {string}
1942 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1943 */
1944 RegExp.$1;
1945 /**
1946 * @type {string}
1947 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1948 */
1949 RegExp.$2;
1950 /**
1951 * @type {string}
1952 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1953 */
1954 RegExp.$3;
1955 /**
1956 * @type {string}
1957 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1958 */
1959 RegExp.$4;
1960 /**
1961 * @type {string}
1962 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1963 */
1964 RegExp.$5;
1965 /**
1966 * @type {string}
1967 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1968 */
1969 RegExp.$6;
1970 /**
1971 * @type {string}
1972 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1973 */
1974 RegExp.$7;
1975 /**
1976 * @type {string}
1977 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1978 */
1979 RegExp.$8;
1980 /**
1981 * @type {string}
1982 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp
1983 */
1984 RegExp.$9;
1985
1986 // Prototype properties:
1987
1988 /**
1989 * Whether to test the regular expression against all possible matches
1990 * in a string, or only against the first.
1991 * @type {boolean}
1992 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/global
1993 */
1994 RegExp.prototype.global;
1995
1996 /**
1997 * Whether to ignore case while attempting a match in a string.
1998 * @type {boolean}
1999 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/ignoreCase
2000 */
2001 RegExp.prototype.ignoreCase;
2002
2003 /**
2004 * The index at which to start the next match.
2005 * @type {number}
2006 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/lastIndex
2007 */
2008 RegExp.prototype.lastIndex;
2009
2010 /**
2011 * Whether or not to search in strings across multiple lines.
2012 * @type {boolean}
2013 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/multiline
2014 */
2015 RegExp.prototype.multiline;
2016
2017 /**
2018 * The text of the pattern.
2019 * @type {string}
2020 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/source
2021 */
2022 RegExp.prototype.source;
2023
2024
2025 /**
2026 * @constructor
2027 * @param {*=} opt_message
2028 * @param {*=} opt_file
2029 * @param {*=} opt_line
2030 * @return {!Error}
2031 * @nosideeffects
2032 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error
2033 */
2034 function Error(opt_message, opt_file, opt_line) {}
2035
2036
2037 /**
2038 * Chrome/v8 specific, altering the maximum depth of the stack trace
2039 * (10 by default).
2040 * @type {number}
2041 * @see http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
2042 */
2043 Error.stackTraceLimit;
2044
2045
2046 /**
2047 * Chrome/v8 specific, adds a stack trace to the error object. The optional
2048 * constructorOpt parameter allows you to pass in a function value. When
2049 * collecting the stack trace all frames above the topmost call to this
2050 * function, including that call, will be left out of the stack trace.
2051 * @param {Object} error The object to add the stack trace to.
2052 * @param {Function=} opt_constructor A function in the stack trace
2053 * @see http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
2054 */
2055 Error.captureStackTrace = function(error, opt_constructor){};
2056
2057
2058 /**
2059 * IE-only.
2060 * @type {string}
2061 * @see http://msdn.microsoft.com/en-us/library/2w6a45b5.aspx
2062 */
2063 Error.prototype.description;
2064
2065
2066 /**
2067 * Mozilla-only.
2068 * @type {number}
2069 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/lineNumber
2070 */
2071 Error.prototype.lineNumber;
2072
2073 /**
2074 * Mozilla-only
2075 * @type {string}
2076 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/fileName
2077 */
2078 Error.prototype.fileName;
2079
2080 /**
2081 * @type {string}
2082 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/name
2083 */
2084 Error.prototype.name;
2085
2086 /**
2087 * @type {string}
2088 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error/message
2089 */
2090 Error.prototype.message;
2091
2092 /**
2093 * Doesn't seem to exist, but closure/debug.js references it.
2094 */
2095 Error.prototype.sourceURL;
2096
2097 /** @type {string} */
2098 Error.prototype.stack;
2099
2100
2101 /**
2102 * @constructor
2103 * @extends {Error}
2104 * @param {*=} opt_message
2105 * @param {*=} opt_file
2106 * @param {*=} opt_line
2107 * @return {!EvalError}
2108 * @nosideeffects
2109 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/EvalError
2110 */
2111 function EvalError(opt_message, opt_file, opt_line) {}
2112
2113 /**
2114 * @constructor
2115 * @extends {Error}
2116 * @param {*=} opt_message
2117 * @param {*=} opt_file
2118 * @param {*=} opt_line
2119 * @return {!RangeError}
2120 * @nosideeffects
2121 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RangeError
2122 */
2123 function RangeError(opt_message, opt_file, opt_line) {}
2124
2125 /**
2126 * @constructor
2127 * @extends {Error}
2128 * @param {*=} opt_message
2129 * @param {*=} opt_file
2130 * @param {*=} opt_line
2131 * @return {!ReferenceError}
2132 * @nosideeffects
2133 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/ReferenceError
2134 */
2135 function ReferenceError(opt_message, opt_file, opt_line) {}
2136
2137 /**
2138 * @constructor
2139 * @extends {Error}
2140 * @param {*=} opt_message
2141 * @param {*=} opt_file
2142 * @param {*=} opt_line
2143 * @return {!SyntaxError}
2144 * @nosideeffects
2145 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/SyntaxError
2146 */
2147 function SyntaxError(opt_message, opt_file, opt_line) {}
2148
2149 /**
2150 * @constructor
2151 * @extends {Error}
2152 * @param {*=} opt_message
2153 * @param {*=} opt_file
2154 * @param {*=} opt_line
2155 * @return {!TypeError}
2156 * @nosideeffects
2157 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/TypeError
2158 */
2159 function TypeError(opt_message, opt_file, opt_line) {}
2160
2161 /**
2162 * @constructor
2163 * @extends {Error}
2164 * @param {*=} opt_message
2165 * @param {*=} opt_file
2166 * @param {*=} opt_line
2167 * @return {!URIError}
2168 * @nosideeffects
2169 * @see http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/URIError
2170 */
2171 function URIError(opt_message, opt_file, opt_line) {}
2172
2173
2174 // JScript extensions.
2175 // @see http://msdn.microsoft.com/en-us/library/894hfyb4(VS.80).aspx
2176
2177 /**
2178 * @param {string} progId
2179 * @param {string=} opt_location
2180 * @constructor
2181 * @see http://msdn.microsoft.com/en-us/library/7sw4ddf8.aspx
2182 */
2183 function ActiveXObject(progId, opt_location) {}
2184
2185 /**
2186 * @return {string}
2187 * @nosideeffects
2188 * @see http://msdn.microsoft.com/en-us/library/9k34bww2(VS.80).aspx
2189 */
2190 function ScriptEngine() {}
2191
2192 /**
2193 * @return {number}
2194 * @nosideeffects
2195 * @see http://msdn.microsoft.com/en-us/library/yf25ky07(VS.80).aspx
2196 */
2197 function ScriptEngineMajorVersion() {}
2198
2199 /**
2200 * @return {number}
2201 * @nosideeffects
2202 * @see http://msdn.microsoft.com/en-us/library/wx3812cz(VS.80).aspx
2203 */
2204 function ScriptEngineMinorVersion() {}
2205
2206 /**
2207 * @return {number}
2208 * @nosideeffects
2209 * @see http://msdn.microsoft.com/en-us/library/e98hsk2f(VS.80).aspx
2210 */
2211 function ScriptEngineBuildVersion() {}