Index: src/runtime.js |
diff --git a/src/runtime.js b/src/runtime.js |
index ab79a4bbde0853ee3f39b68c2cf8518fb8f8f975..a2ce3306a05b1d296abb691d2bd29ca43ae8b643 100644 |
--- a/src/runtime.js |
+++ b/src/runtime.js |
@@ -930,6 +930,14 @@ function SameValueZero(x, y) { |
return x === y; |
} |
+function ConcatIterableToArray(target, iterable) { |
+ var index = target.length; |
+ for (var element of iterable) { |
+ %AddElement(target, index++, element, NONE); |
+ } |
+ return target; |
+} |
+ |
/* --------------------------------- |
- - - U t i l i t i e s - - - |
@@ -1008,6 +1016,7 @@ function ToPositiveInteger(x, rangeErrorIndex) { |
//---------------------------------------------------------------------------- |
+$concatIterableToArray = ConcatIterableToArray; |
$defaultNumber = DefaultNumber; |
$defaultString = DefaultString; |
$NaN = %GetRootNaN(); |