Index: src/inspector/v8-console.cc |
diff --git a/src/inspector/v8-console.cc b/src/inspector/v8-console.cc |
index cfe7fc1532c972d262bab12f022ab729ef66ffeb..82b9603609025bf7f04c14409dae8d2c31f942dd 100644 |
--- a/src/inspector/v8-console.cc |
+++ b/src/inspector/v8-console.cc |
@@ -740,9 +740,11 @@ v8::Local<v8::Object> V8Console::createConsole( |
if (inspector->compileAndRunInternalScript(context, assertSource) |
.ToLocal(&setupFunction) && |
setupFunction->IsFunction()) { |
- inspector->callInternalFunction( |
- v8::Local<v8::Function>::Cast(setupFunction), context, console, 0, |
- nullptr); |
+ v8::MicrotasksScope microtasksScope( |
+ isolate, v8::MicrotasksScope::kDoNotRunMicrotasks); |
+ v8::MaybeLocal<v8::Value> result; |
+ result = v8::Local<v8::Function>::Cast(setupFunction) |
+ ->Call(context, console, 0, nullptr); |
} |
if (hasMemoryAttribute) |