Index: src/array.js |
=================================================================== |
--- src/array.js (revision 6552) |
+++ src/array.js (working copy) |
@@ -171,8 +171,9 @@ |
} |
return %StringBuilderConcat(elements, length2, ''); |
} finally { |
- // Make sure to pop the visited array no matter what happens. |
- if (is_array) visited_arrays.pop(); |
+ // Make sure to remove the last element of the visited array no |
+ // matter what happens. |
+ if (is_array) visited_arrays.length = visited_arrays.length - 1; |
} |
} |