Index: src/array.js |
=================================================================== |
--- src/array.js (revision 2941) |
+++ src/array.js (working copy) |
@@ -709,6 +709,8 @@ |
QuickSort(a, high_start, to); |
} |
+ var length; |
+ |
// Copies elements in the range 0..length from obj's prototype chain |
// to obj itself, if obj has holes. Returns one more than the maximal index |
// of a prototype property. |
@@ -826,7 +828,7 @@ |
return first_undefined; |
} |
- var length = ToUint32(this.length); |
+ length = ToUint32(this.length); |
if (length < 2) return this; |
var is_array = IS_ARRAY(this); |