| Index: third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
|
| index 4953456f40357ffec45e6287ccd9da24a9b0681f..2fed25add850be4d91b5b438addcdeb8aab0f4ae 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
|
| @@ -64,7 +64,8 @@ TestArrayBuffer* V8ArrayBuffer::toImpl(v8::Local<v8::Object> object) {
|
| // Transfer the ownership of the allocated memory to an ArrayBuffer without
|
| // copying.
|
| v8::ArrayBuffer::Contents v8Contents = v8buffer->Externalize();
|
| - WTF::ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), WTF::ArrayBufferContents::NotShared);
|
| + WTF::ArrayBufferContents::DataHandle data(v8Contents.Data(), WTF::ArrayBufferContents::freeMemory);
|
| + WTF::ArrayBufferContents contents(std::move(data), v8Contents.ByteLength(), WTF::ArrayBufferContents::NotShared);
|
| TestArrayBuffer* buffer = TestArrayBuffer::create(contents);
|
| v8::Local<v8::Object> associatedWrapper = buffer->associateWithWrapper(v8::Isolate::GetCurrent(), buffer->wrapperTypeInfo(), object);
|
| DCHECK(associatedWrapper == object);
|
|
|