| Index: third_party/WebKit/Source/platform/v8_inspector/InspectorWrapper.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/InspectorWrapper.cpp b/third_party/WebKit/Source/platform/v8_inspector/InspectorWrapper.cpp
|
| index 7d60b126c07d9042f27a97c0238b4ab4904db6fd..e8277ba96d72a5f995b1a24f72397fa3d8e61a8b 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/InspectorWrapper.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/InspectorWrapper.cpp
|
| @@ -32,15 +32,14 @@ v8::Local<v8::FunctionTemplate> InspectorWrapperBase::createWrapperTemplate(v8::
|
| return functionTemplate;
|
| }
|
|
|
| -v8::Local<v8::Object> InspectorWrapperBase::createWrapper(v8::Local<v8::FunctionTemplate> constructorTemplate, v8::Local<v8::Context> context)
|
| +v8::Local<v8::Object> InspectorWrapperBase::createWrapper(V8DebuggerClient* client, v8::Local<v8::FunctionTemplate> constructorTemplate, v8::Local<v8::Context> context)
|
| {
|
| - v8::MicrotasksScope microtasks(context->GetIsolate(), v8::MicrotasksScope::kDoNotRunMicrotasks);
|
| v8::Local<v8::Function> function;
|
| if (!constructorTemplate->GetFunction(context).ToLocal(&function))
|
| return v8::Local<v8::Object>();
|
|
|
| v8::Local<v8::Object> result;
|
| - if (!function->NewInstance(context).ToLocal(&result))
|
| + if (!client->instantiateObject(function).ToLocal(&result))
|
| return v8::Local<v8::Object>();
|
| return result;
|
| }
|
|
|