Index: src/js/array-iterator.js |
diff --git a/src/js/array-iterator.js b/src/js/array-iterator.js |
index f0754ad093314afec4bf69e1abd719a75fff906c..7170cba9148bb05472e05436b1112d4fb75e28f4 100644 |
--- a/src/js/array-iterator.js |
+++ b/src/js/array-iterator.js |
@@ -78,7 +78,7 @@ function ArrayIteratorNext() { |
var value = UNDEFINED; |
var done = true; |
- if (!IS_SPEC_OBJECT(iterator) || |
+ if (!IS_RECEIVER(iterator) || |
!HAS_DEFINED_PRIVATE(iterator, arrayIteratorNextIndexSymbol)) { |
throw MakeTypeError(kIncompatibleMethodReceiver, |
'Array Iterator.prototype.next', this); |