| Index: src/array.js
|
| ===================================================================
|
| --- src/array.js (revision 3056)
|
| +++ src/array.js (working copy)
|
| @@ -1058,6 +1058,10 @@
|
| return current;
|
| }
|
|
|
| +// ES5, 15.4.3.2
|
| +function ArrayIsArray(obj) {
|
| + return IS_ARRAY(obj);
|
| +}
|
|
|
| // -------------------------------------------------------------------
|
|
|
| @@ -1075,6 +1079,11 @@
|
| // object.
|
| %SetProperty($Array.prototype, "constructor", $Array, DONT_ENUM);
|
|
|
| + // Setup non-enumerable functions on the Array object.
|
| + InstallFunctions($Array, DONT_ENUM, $Array(
|
| + "isArray", ArrayIsArray
|
| + ));
|
| +
|
| // Setup non-enumerable functions of the Array.prototype object and
|
| // set their names.
|
| InstallFunctionsOnHiddenPrototype($Array.prototype, DONT_ENUM, $Array(
|
| @@ -1098,8 +1107,9 @@
|
| "indexOf", ArrayIndexOf,
|
| "lastIndexOf", ArrayLastIndexOf,
|
| "reduce", ArrayReduce,
|
| - "reduceRight", ArrayReduceRight));
|
| -
|
| + "reduceRight", ArrayReduceRight
|
| + ));
|
| +
|
| // Manipulate the length of some of the functions to meet
|
| // expectations set by ECMA-262 or Mozilla.
|
| UpdateFunctionLengths({
|
|
|