| Index: third_party/WebKit/Source/bindings/templates/interface.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/templates/interface.cpp b/third_party/WebKit/Source/bindings/templates/interface.cpp
|
| index 7046525d6d3b2090847a7b5973aee03f855905e9..00482f23e148bc71342a929bec0b00ea4b6b70d6 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/interface.cpp
|
| +++ b/third_party/WebKit/Source/bindings/templates/interface.cpp
|
| @@ -781,7 +781,7 @@ v8::Local<v8::Object> {{v8_class}}::findInstanceInPrototypeChain(v8::Local<v8::V
|
| // Transfer the ownership of the allocated memory to an {{interface_name}} without
|
| // copying.
|
| v8::{{interface_name}}::Contents v8Contents = v8buffer->Externalize();
|
| - WTF::ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), WTF::ArrayBufferContents::{% if interface_name == 'ArrayBuffer' %}Not{% endif %}Shared);
|
| + WTF::ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), WTF::ArrayBufferContents::{% if interface_name == 'ArrayBuffer' %}Not{% endif %}Shared, WTF::ArrayBufferContents::CrashIfOutOfMemory_DEPRECATED);
|
| RefPtr<{{cpp_class}}> buffer = {{cpp_class}}::create(contents);
|
| v8::Local<v8::Object> associatedWrapper = buffer->associateWithWrapper(v8::Isolate::GetCurrent(), buffer->wrapperTypeInfo(), object);
|
| ASSERT_UNUSED(associatedWrapper, associatedWrapper == object);
|
|
|