Index: src/array.js |
diff --git a/src/array.js b/src/array.js |
index 37053ce67e5fe8762d580f303c880acd3db513b0..47f796d2b11e3a768b123fb369500cbd946937b8 100644 |
--- a/src/array.js |
+++ b/src/array.js |
@@ -413,6 +413,7 @@ function ArrayJoin(separator) { |
["Array.prototype.join"]); |
} |
+ var length = TO_UINT32(this.length); |
if (IS_UNDEFINED(separator)) { |
separator = ','; |
} else if (!IS_STRING(separator)) { |
@@ -422,7 +423,7 @@ function ArrayJoin(separator) { |
var result = %_FastAsciiArrayJoin(this, separator); |
if (!IS_UNDEFINED(result)) return result; |
- return Join(this, TO_UINT32(this.length), separator, ConvertToString); |
+ return Join(this, length, separator, ConvertToString); |
} |