Index: third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp |
index 6aa5999ef6d8c3038cd5ef46f2d9d805cdcdf0b0..0eacee0cbc9bfdc905c42492287765ccb4bcc875 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp |
@@ -352,14 +352,18 @@ class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { |
void* Allocate(size_t size) override |
{ |
void* data; |
- WTF::ArrayBufferContents::allocateMemory(size, WTF::ArrayBufferContents::ZeroInitialize, data); |
+ // FIXME: Use AllocateMemoryOrNull. Requires verification that all |
+ // call sites can handle allocation failures (nullptr) gracefully. |
+ WTF::ArrayBufferContents::deprecatedAllocateMemoryOrCrash(size, WTF::ArrayBufferContents::ZeroInitialize, data); |
return data; |
} |
void* AllocateUninitialized(size_t size) override |
{ |
void* data; |
- WTF::ArrayBufferContents::allocateMemory(size, WTF::ArrayBufferContents::DontInitialize, data); |
+ // FIXME: Use AllocateMemoryOrNull. Requires verification that all |
+ // call sites can handle allocation failures (nullptr) gracefully. |
+ WTF::ArrayBufferContents::deprecatedAllocateMemoryOrCrash(size, WTF::ArrayBufferContents::DontInitialize, data); |
return data; |
} |