| Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
|
| index aa2e1f6e9f59ea736a8525889e559a016743b857..decabcf4ca003457bd155530d80051c386f49c2e 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
|
| @@ -60,6 +60,7 @@ static bool inLiveEditScope = false;
|
|
|
| v8::MaybeLocal<v8::Value> V8DebuggerImpl::callDebuggerMethod(const char* functionName, int argc, v8::Local<v8::Value> argv[])
|
| {
|
| + v8::MicrotasksScope microtasks(m_isolate, v8::MicrotasksScope::kDoNotRunMicrotasks);
|
| v8::Local<v8::Object> debuggerScript = m_debuggerScript.Get(m_isolate);
|
| v8::Local<v8::Function> function = v8::Local<v8::Function>::Cast(debuggerScript->Get(v8InternalizedString(functionName)));
|
| ASSERT(m_isolate->InContext());
|
| @@ -215,6 +216,7 @@ void V8DebuggerImpl::getCompiledScripts(int contextGroupId, protocol::Vector<V8D
|
| v8::Local<v8::Function> getScriptsFunction = v8::Local<v8::Function>::Cast(debuggerScript->Get(v8InternalizedString("getScripts")));
|
| v8::Local<v8::Value> argv[] = { v8::Integer::New(m_isolate, contextGroupId) };
|
| v8::Local<v8::Value> value;
|
| + v8::MicrotasksScope microtasks(m_isolate, v8::MicrotasksScope::kDoNotRunMicrotasks);
|
| if (!getScriptsFunction->Call(debuggerContext(), debuggerScript, WTF_ARRAY_LENGTH(argv), argv).ToLocal(&value))
|
| return;
|
| ASSERT(value->IsArray());
|
| @@ -609,6 +611,7 @@ v8::Local<v8::Value> V8DebuggerImpl::callInternalGetterFunction(v8::Local<v8::Ob
|
| {
|
| v8::Local<v8::Value> getterValue = object->Get(v8InternalizedString(functionName));
|
| ASSERT(!getterValue.IsEmpty() && getterValue->IsFunction());
|
| + v8::MicrotasksScope microtasks(m_isolate, v8::MicrotasksScope::kDoNotRunMicrotasks);
|
| return v8::Local<v8::Function>::Cast(getterValue)->Call(m_isolate->GetCurrentContext(), object, 0, 0).ToLocalChecked();
|
| }
|
|
|
|
|