Index: src/js/string-iterator.js |
diff --git a/src/js/string-iterator.js b/src/js/string-iterator.js |
index af9af31efd884ef1322c625ed4fc9676e7dd1383..2319e5a67950714c06a28c21edb67a45d9fbe3b1 100644 |
--- a/src/js/string-iterator.js |
+++ b/src/js/string-iterator.js |
@@ -14,17 +14,12 @@ |
var GlobalString = global.String; |
var IteratorPrototype = utils.ImportNow("IteratorPrototype"); |
var iteratorSymbol = utils.ImportNow("iterator_symbol"); |
-var MakeTypeError; |
var stringIteratorIteratedStringSymbol = |
utils.ImportNow("string_iterator_iterated_string_symbol"); |
var stringIteratorNextIndexSymbol = |
utils.ImportNow("string_iterator_next_index_symbol"); |
var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); |
-utils.Import(function(from) { |
- MakeTypeError = from.MakeTypeError; |
-}); |
- |
// ------------------------------------------------------------------- |
function StringIterator() {} |
@@ -49,7 +44,7 @@ function StringIteratorNext() { |
if (!IS_RECEIVER(iterator) || |
!HAS_DEFINED_PRIVATE(iterator, stringIteratorNextIndexSymbol)) { |
- throw MakeTypeError(kIncompatibleMethodReceiver, |
+ throw %make_type_error(kIncompatibleMethodReceiver, |
'String Iterator.prototype.next'); |
} |