Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index d2a922ea7492394dd5996411fb3fd3360a5fa267..60c703db07f15646ecee87e4a5b0dd682cff9383 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -269,7 +269,7 @@ |
if (CanBeSafelyTreatedAsAnErrorObject(obj)) { |
return %_CallFunction(obj, ErrorToString); |
} else { |
- return $toString(obj); |
+ return ToString(obj); |
} |
} |
@@ -1089,7 +1089,7 @@ |
// 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', ToString(m), DONT_ENUM); |
} |
} else { |
return new f(m); |