Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index e366b9bbc1f74c53ab3883936040c4c4bf188a49..3d2cc97d87beecb19ddbb547f6972d772c5cef60 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -300,7 +300,7 @@ function ToStringCheckErrorObject(obj) { |
function ToDetailString(obj) { |
- if (obj != null && IS_OBJECT(obj) && obj.toString === DefaultObjectToString) { |
+ if (obj != null && IS_OBJECT(obj) && obj.toString === ObjectToString) { |
var constructor = obj.constructor; |
if (typeof constructor == "function") { |
var constructorName = constructor.name; |