Chromium Code Reviews| Index: third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp |
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp |
| index 3e0db33d1b335fbccba86665e5bdd0ac83533a6a..d4631c0ecc6b373e1b8e0d1f185a778312a3b615 100644 |
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp |
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp |
| @@ -624,6 +624,8 @@ void V8Console::inspectedObject(const v8::FunctionCallbackInfo<v8::Value>& info, |
| } |
| } |
| +static void suppressBoolUnused(bool) {} |
| + |
| v8::Local<v8::Object> V8Console::createConsole(InspectedContext* inspectedContext, bool hasMemoryAttribute) |
| { |
| v8::Local<v8::Context> context = inspectedContext->context(); |
| @@ -656,6 +658,8 @@ v8::Local<v8::Object> V8Console::createConsole(InspectedContext* inspectedContex |
| createBoundFunctionProperty(context, console, "timeEnd", V8Console::timeEndCallback); |
| createBoundFunctionProperty(context, console, "timeStamp", V8Console::timeStampCallback); |
| + suppressBoolUnused(console->SetPrototype(context, v8::Object::New(isolate)).FromMaybe(false)); |
|
dgozman
2016/05/20 18:26:36
Use DCHECK.
kozy
2016/05/20 18:32:52
Done.
|
| + |
| if (hasMemoryAttribute) |
| console->SetAccessorProperty(toV8StringInternalized(isolate, "memory"), v8::Function::New(isolate, V8Console::memoryGetterCallback, console), v8::Function::New(isolate, V8Console::memorySetterCallback), static_cast<v8::PropertyAttribute>(v8::None), v8::DEFAULT); |