Index: src/js/string-iterator.js |
diff --git a/src/js/string-iterator.js b/src/js/string-iterator.js |
index ece207cd742ac9dd3fe8725ab51fd27ceabfba2e..3c331dd1a2da4e99dc0e84be7c9ffa091f01acad 100644 |
--- a/src/js/string-iterator.js |
+++ b/src/js/string-iterator.js |
@@ -46,7 +46,7 @@ function StringIteratorNext() { |
var value = UNDEFINED; |
var done = true; |
- if (!IS_SPEC_OBJECT(iterator) || |
+ if (!IS_RECEIVER(iterator) || |
!HAS_DEFINED_PRIVATE(iterator, stringIteratorNextIndexSymbol)) { |
throw MakeTypeError(kIncompatibleMethodReceiver, |
'String Iterator.prototype.next'); |