Index: src/array-iterator.js |
diff --git a/src/array-iterator.js b/src/array-iterator.js |
index 965e672f0d67aaa92dd44265dcce2a0b09340acd..24a9ba51a60168664df84133bfb8d4ffc4b57719 100644 |
--- a/src/array-iterator.js |
+++ b/src/array-iterator.js |
@@ -45,7 +45,7 @@ function ArrayIterator() {} |
// 15.4.5.1 CreateArrayIterator Abstract Operation |
function CreateArrayIterator(array, kind) { |
- var object = $toObject(array); |
+ var object = TO_OBJECT(array); |
var iterator = new ArrayIterator; |
SET_PRIVATE(iterator, arrayIteratorObjectSymbol, object); |
SET_PRIVATE(iterator, arrayIteratorNextIndexSymbol, 0); |
@@ -68,7 +68,7 @@ function ArrayIteratorIterator() { |
// 15.4.5.2.2 ArrayIterator.prototype.next( ) |
function ArrayIteratorNext() { |
- var iterator = $toObject(this); |
+ var iterator = TO_OBJECT(this); |
if (!HAS_DEFINED_PRIVATE(iterator, arrayIteratorNextIndexSymbol)) { |
throw MakeTypeError(kIncompatibleMethodReceiver, |