Index: src/objects-printer.cc |
=================================================================== |
--- src/objects-printer.cc (revision 11324) |
+++ src/objects-printer.cc (working copy) |
@@ -753,8 +753,10 @@ |
instance_class_name()->Print(out); |
PrintF(out, "\n - code = "); |
code()->ShortPrint(out); |
- PrintF(out, "\n - source code = "); |
- GetSourceCode()->ShortPrint(out); |
+ if (HasSourceCode()) { |
+ PrintF(out, "\n - source code = "); |
+ GetSourceCode()->ShortPrint(out); |
+ } |
// Script files are often large, hard to read. |
// PrintF(out, "\n - script ="); |
// script()->Print(out); |