Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 692fa64bb69d34e2fe2f1ff6c815c2a5b7852b1e..68b71e31b24c7aa725a45e030e11dc2e352d346d 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -161,6 +161,9 @@ void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) { |
bool print_source = |
info->parse_info() && (code->kind() == Code::OPTIMIZED_FUNCTION || |
code->kind() == Code::FUNCTION); |
+ // TODO(mstarzinger): Switch this over to use SharedFunctionInfo instead of |
+ // the FunctionLiteral, once we have a SharedFunctionInfo for live edit. |
+ print_source = print_source && info->literal() != nullptr; |
if (print_source) { |
FunctionLiteral* literal = info->literal(); |
Handle<Script> script = info->script(); |