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..78276c7aeca715c64bce43cd324155d4f2ef41db 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp |
@@ -656,6 +656,9 @@ v8::Local<v8::Object> V8Console::createConsole(InspectedContext* inspectedContex |
createBoundFunctionProperty(context, console, "timeEnd", V8Console::timeEndCallback); |
createBoundFunctionProperty(context, console, "timeStamp", V8Console::timeStampCallback); |
+ bool success = console->SetPrototype(context, v8::Object::New(isolate)).FromMaybe(false); |
+ DCHECK(success); |
+ |
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); |