Index: third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
index 14eb01f1df82fa92bcc89339c471284f80b51fe8..8f3bc8dc3e11ec0cf31ed93ee8525700cef3602e 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
@@ -308,6 +308,7 @@ static bool installCommandLineAPIIfNeeded(v8::Local<v8::Name> name, const Atomic |
} |
if (isGetter && value->IsFunction()) { |
v8::Local<v8::Function> getterFunction = v8::Local<v8::Function>::Cast(value); |
+ v8::MicrotasksScope microtasks(isolate, v8::MicrotasksScope::kDoNotRunMicrotasks); |
if (getterFunction->Call(context, commandLineAPI, 0, nullptr).ToLocal(&value)) { |
v8SetReturnValue(info, value); |
return true; |