Index: src/js/symbol.js |
diff --git a/src/js/symbol.js b/src/js/symbol.js |
index 86af489601385b68d3f19490efedb06910f2b337..4ec31ae9bb2ba445821c610981ecbdee4c5a6128 100644 |
--- a/src/js/symbol.js |
+++ b/src/js/symbol.js |
@@ -16,7 +16,6 @@ var hasInstanceSymbol = utils.ImportNow("has_instance_symbol"); |
var isConcatSpreadableSymbol = |
utils.ImportNow("is_concat_spreadable_symbol"); |
var iteratorSymbol = utils.ImportNow("iterator_symbol"); |
-var MakeTypeError; |
var matchSymbol = utils.ImportNow("match_symbol"); |
var replaceSymbol = utils.ImportNow("replace_symbol"); |
var searchSymbol = utils.ImportNow("search_symbol"); |
@@ -26,10 +25,6 @@ var toPrimitiveSymbol = utils.ImportNow("to_primitive_symbol"); |
var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); |
var unscopablesSymbol = utils.ImportNow("unscopables_symbol"); |
-utils.Import(function(from) { |
- MakeTypeError = from.MakeTypeError; |
-}); |
- |
// ------------------------------------------------------------------- |
function SymbolFor(key) { |
@@ -45,7 +40,7 @@ function SymbolFor(key) { |
function SymbolKeyFor(symbol) { |
- if (!IS_SYMBOL(symbol)) throw MakeTypeError(kSymbolKeyFor, symbol); |
+ if (!IS_SYMBOL(symbol)) throw %make_type_error(kSymbolKeyFor, symbol); |
return %SymbolRegistry().keyFor[symbol]; |
} |