Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index 72637fb76e6abadbb214a41e07c3349c26b8ec6c..c55515536131101f86299d323bad662fa6cc6bfd 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -248,7 +248,7 @@ function NoSideEffectToString(obj) { |
} |
if (IS_SYMBOL(obj)) return %_CallFunction(obj, $symbolToString); |
if (IS_OBJECT(obj) |
- && %GetDataProperty(obj, "toString") === DefaultObjectToString) { |
+ && %GetDataProperty(obj, "toString") === ObjectToString) { |
var constructor = %GetDataProperty(obj, "constructor"); |
if (typeof constructor == "function") { |
var constructorName = constructor.name; |