Index: src/array-iterator.js |
diff --git a/src/array-iterator.js b/src/array-iterator.js |
index 24bf7e5c9a93da40832e7c72c1c919f55e8a9e86..2d1a2a652c3092e903b8742bd0ce1b4551ea0abe 100644 |
--- a/src/array-iterator.js |
+++ b/src/array-iterator.js |
@@ -12,7 +12,6 @@ var $arrayValues; |
%CheckIsBootstrapping(); |
var GlobalArray = global.Array; |
-var GlobalObject = global.Object; |
macro TYPED_ARRAYS(FUNCTION) |
FUNCTION(Uint8Array) |
@@ -122,7 +121,7 @@ function ArrayKeys() { |
} |
-%FunctionSetPrototype(ArrayIterator, new GlobalObject()); |
+%FunctionSetPrototype(ArrayIterator, {__proto__: $iteratorPrototype}); |
%FunctionSetInstanceClassName(ArrayIterator, 'Array Iterator'); |
$installFunctions(ArrayIterator.prototype, DONT_ENUM, [ |