Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index 2e73d6e681fe3c6cdb7665f11fc1209d65f6c46c..5441cfe34a71970912e7b8c1fe01730b8d573b1d 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -49,7 +49,6 @@ var StringCharAt; |
var StringIndexOf; |
var StringSubstring; |
var SymbolToString; |
-var ToString = utils.ImportNow("ToString"); |
var Uint16x8ToString; |
var Uint32x4ToString; |
var Uint8x16ToString; |
@@ -169,7 +168,7 @@ function ToStringCheckErrorObject(obj) { |
if (CanBeSafelyTreatedAsAnErrorObject(obj)) { |
return %_CallFunction(obj, ErrorToString); |
} else { |
- return ToString(obj); |
+ return TO_STRING(obj); |
} |
} |
@@ -953,7 +952,7 @@ function DefineError(global, f) { |
// object. This avoids going through getters and setters defined |
// on prototype objects. |
if (!IS_UNDEFINED(m)) { |
- %AddNamedProperty(this, 'message', ToString(m), DONT_ENUM); |
+ %AddNamedProperty(this, 'message', TO_STRING(m), DONT_ENUM); |
} |
} else { |
return new f(m); |