Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index 8d79dac43225931eb1800bde5f2b54feead2f92b..727efc4f0a8aa859018664b215cc69b76869564f 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -849,6 +849,7 @@ function FormatStackTrace(obj, raw_stack) { |
function GetTypeName(receiver, requireConstructor) { |
+ if (IS_NULL_OR_UNDEFINED(receiver)) return null; |
var constructor = receiver.constructor; |
if (!constructor) { |
return requireConstructor ? null : |