diff options
Diffstat (limited to 'src/inspector_js_api.cc')
-rw-r--r-- | src/inspector_js_api.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inspector_js_api.cc b/src/inspector_js_api.cc index 18b9e61075..54b7c4d01c 100644 --- a/src/inspector_js_api.cc +++ b/src/inspector_js_api.cc @@ -149,12 +149,11 @@ void CallAndPauseOnStart(const FunctionCallbackInfo<v8::Value>& args) { } void InspectorConsoleCall(const FunctionCallbackInfo<Value>& info) { - Isolate* isolate = info.GetIsolate(); - HandleScope handle_scope(isolate); + Environment* env = Environment::GetCurrent(info); + Isolate* isolate = env->isolate(); Local<Context> context = isolate->GetCurrentContext(); CHECK_LT(2, info.Length()); SlicedArguments call_args(info, /* start */ 3); - Environment* env = Environment::GetCurrent(isolate); if (InspectorEnabled(env)) { Local<Value> inspector_method = info[0]; CHECK(inspector_method->IsFunction()); |