| Index: third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
|
| index 75f9c12e18405f05e006edd98ce85448f81bb9fe..dabdbe595bb926ebb1488a083b2cf3c5f56312e9 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
|
| @@ -141,9 +141,9 @@ static v8::MaybeLocal<v8::Function> createRemoveFunction(v8::Local<v8::Context>
|
| return v8::MaybeLocal<v8::Function>();
|
| if (!data->Set(context, v8String(isolate, "useCapture"), v8Boolean(useCapture, isolate)).FromMaybe(false))
|
| return v8::MaybeLocal<v8::Function>();
|
| - v8::Local<v8::Function> removeFunction = v8::Function::New(isolate, removeEventListenerCallback, data);
|
| + v8::Local<v8::Function> removeFunction = v8::Function::New(context, removeEventListenerCallback, data, 0, v8::ConstructorBehavior::kThrow).ToLocalChecked();
|
| v8::Local<v8::Function> toStringFunction;
|
| - if (v8::Function::New(context, returnDataCallback, v8String(isolate, "function remove() { [Command Line API] }")).ToLocal(&toStringFunction))
|
| + if (v8::Function::New(context, returnDataCallback, v8String(isolate, "function remove() { [Command Line API] }"), 0, v8::ConstructorBehavior::kThrow).ToLocal(&toStringFunction))
|
| removeFunction->Set(v8String(context->GetIsolate(), "toString"), toStringFunction);
|
| return removeFunction;
|
| }
|
|
|