Index: src/inspector/java-script-call-frame.cc |
diff --git a/src/inspector/java-script-call-frame.cc b/src/inspector/java-script-call-frame.cc |
index 9847944243d60004cc83782ba669fe213d5c9724..aba410da6a32b9d5c1b15c21541cf04c334a7d62 100644 |
--- a/src/inspector/java-script-call-frame.cc |
+++ b/src/inspector/java-script-call-frame.cc |
@@ -98,7 +98,7 @@ |
} |
v8::MaybeLocal<v8::Value> JavaScriptCallFrame::evaluate( |
- v8::Local<v8::Value> expression, bool throwOnSideEffect) { |
+ v8::Local<v8::Value> expression) { |
v8::MicrotasksScope microtasks(m_isolate, |
v8::MicrotasksScope::kRunMicrotasks); |
v8::Local<v8::Context> context = |
@@ -108,9 +108,7 @@ |
v8::Local<v8::Function> evalFunction = v8::Local<v8::Function>::Cast( |
callFrame->Get(context, toV8StringInternalized(m_isolate, "evaluate")) |
.ToLocalChecked()); |
- v8::Local<v8::Value> argv[] = { |
- expression, v8::Boolean::New(m_isolate, throwOnSideEffect)}; |
- return evalFunction->Call(context, callFrame, arraysize(argv), argv); |
+ return evalFunction->Call(context, callFrame, 1, &expression); |
} |
v8::MaybeLocal<v8::Value> JavaScriptCallFrame::restart() { |