{
size_t stackSize = 1;
if (InspectorInstrumentation::hasFrontends()) {
- ExecutionContext* executionContext = getExecutionContext();
+ ExecutionContext* executionContext = currentExecutionContext(v8::Isolate::GetCurrent());
if (InspectorInstrumentation::consoleAgentEnabled(executionContext))
stackSize = maxStackSize;
}