Index: src/js/array-iterator.js |
diff --git a/src/js/array-iterator.js b/src/js/array-iterator.js |
index 11b07db80676f9fc3704f297601a214987839521..03ef3b2870c38c726576bd92acc4caccfe31fe7d 100644 |
--- a/src/js/array-iterator.js |
+++ b/src/js/array-iterator.js |
@@ -18,6 +18,7 @@ var arrayIteratorNextIndexSymbol = |
var arrayIteratorObjectSymbol = |
utils.ImportNow("array_iterator_object_symbol"); |
var GlobalArray = global.Array; |
+var IteratorPrototype = utils.ImportNow("IteratorPrototype"); |
var iteratorSymbol = utils.ImportNow("iterator_symbol"); |
var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); |
@@ -121,7 +122,7 @@ function ArrayKeys() { |
} |
-%FunctionSetPrototype(ArrayIterator, {__proto__: $iteratorPrototype}); |
+%FunctionSetPrototype(ArrayIterator, {__proto__: IteratorPrototype}); |
%FunctionSetInstanceClassName(ArrayIterator, 'Array Iterator'); |
utils.InstallFunctions(ArrayIterator.prototype, DONT_ENUM, [ |