Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 60c5e595afa004eb8f1e4d1b5f1126492d376cee..a670ceedd6d02789082c07c8b11ed0d568cc9e6f 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -2984,6 +2984,7 @@ void Interpreter::DoReturn(InterpreterAssembler* assembler) { |
void Interpreter::DoDebugger(InterpreterAssembler* assembler) { |
Node* context = __ GetContext(); |
__ CallRuntime(Runtime::kHandleDebuggerStatement, context); |
+ __ MaybeDropFrames(context); |
__ Dispatch(); |
} |
@@ -2996,6 +2997,7 @@ void Interpreter::DoDebugger(InterpreterAssembler* assembler) { |
Node* accumulator = __ GetAccumulator(); \ |
Node* original_handler = \ |
__ CallRuntime(Runtime::kDebugBreakOnBytecode, context, accumulator); \ |
+ __ MaybeDropFrames(context); \ |
__ DispatchToBytecodeHandler(original_handler); \ |
} |
DEBUG_BREAK_BYTECODE_LIST(DEBUG_BREAK); |