diff --git a/src/inspector_js_api.cc b/src/inspector_js_api.cc index 0155123e831fa9..8b55146dbe555f 100644 --- a/src/inspector_js_api.cc +++ b/src/inspector_js_api.cc @@ -273,8 +273,6 @@ void Initialize(Local target, Local unused, Local context, void* priv) { Environment* env = Environment::GetCurrent(context); - Agent* agent = env->inspector_agent(); - v8::Local consoleCallFunc = env->NewFunctionTemplate(InspectorConsoleCall, v8::Local(), v8::ConstructorBehavior::kThrow, @@ -287,8 +285,7 @@ void Initialize(Local target, Local unused, env->SetMethod( target, "setConsoleExtensionInstaller", SetConsoleExtensionInstaller); - if (agent->WillWaitForConnect()) - env->SetMethod(target, "callAndPauseOnStart", CallAndPauseOnStart); + env->SetMethod(target, "callAndPauseOnStart", CallAndPauseOnStart); env->SetMethod(target, "open", Open); env->SetMethodNoSideEffect(target, "url", Url);