Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index 4a7fa6bb5186b9d629a18350ae5c9b8c3a087dd3..5c04efa19d41c2f4f08a12f48aade6802b2b0b49 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -2125,7 +2125,8 @@ void Debug::PrepareForBreakPoints() { |
bool prev_force_debugger_active = |
isolate_->debugger()->force_debugger_active(); |
isolate_->debugger()->set_force_debugger_active(true); |
- function->ReplaceCode(*Compiler::GetCodeForDebugging(function)); |
+ Handle<Code> code = Compiler::GetCodeForDebugging(function); |
+ function->ReplaceCode(*code); |
isolate_->debugger()->set_force_debugger_active( |
prev_force_debugger_active); |
} |