Index: src/runtime/runtime-debug.cc |
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
index 5aaa4251719d03f6e692ba5e6376c1291ff8f74b..75edb6341f8090df9658b3a729cd28bd1b9044de 100644 |
--- a/src/runtime/runtime-debug.cc |
+++ b/src/runtime/runtime-debug.cc |
@@ -1210,19 +1210,20 @@ RUNTIME_FUNCTION(Runtime_DebugEvaluate) { |
// Check the execution state and decode arguments frame and source to be |
// evaluated. |
- DCHECK_EQ(4, args.length()); |
+ DCHECK_EQ(5, args.length()); |
CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
CHECK(isolate->debug()->CheckExecutionState(break_id)); |
CONVERT_SMI_ARG_CHECKED(wrapped_id, 1); |
CONVERT_NUMBER_CHECKED(int, inlined_jsframe_index, Int32, args[2]); |
CONVERT_ARG_HANDLE_CHECKED(String, source, 3); |
+ CONVERT_BOOLEAN_ARG_CHECKED(throw_on_side_effect, 4); |
StackFrame::Id id = DebugFrameHelper::UnwrapFrameId(wrapped_id); |
RETURN_RESULT_OR_FAILURE( |
- isolate, |
- DebugEvaluate::Local(isolate, id, inlined_jsframe_index, source)); |
+ isolate, DebugEvaluate::Local(isolate, id, inlined_jsframe_index, source, |
+ throw_on_side_effect)); |
} |