Index: Source/bindings/v8/custom/V8ArrayBufferCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8ArrayBufferCustom.cpp b/Source/bindings/v8/custom/V8ArrayBufferCustom.cpp |
index f3494cf694ea534ab856552dc5aa7867ab6413dd..e9a2746bb4b96efb0cdf21d55f089f78184c0826 100644 |
--- a/Source/bindings/v8/custom/V8ArrayBufferCustom.cpp |
+++ b/Source/bindings/v8/custom/V8ArrayBufferCustom.cpp |
@@ -66,7 +66,7 @@ v8::Handle<v8::Object> V8ArrayBuffer::createWrapper(PassRefPtr<ArrayBuffer> impl |
ASSERT(impl.get()); |
ASSERT(!DOMDataStore::containsWrapper<V8ArrayBuffer>(impl.get(), isolate)); |
- v8::Handle<v8::Object> wrapper = v8::ArrayBuffer::New(isolate, impl->data(), impl->byteLength()); |
+ v8::Handle<v8::Object> wrapper = v8::ArrayBuffer::New(isolate, impl->data(), impl->byteLength(), impl->isShared()); |
impl->setDeallocationObserver(V8ArrayBufferDeallocationObserver::instanceTemplate()); |
V8DOMWrapper::associateObjectWithWrapper<V8ArrayBuffer>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
@@ -83,7 +83,7 @@ ArrayBuffer* V8ArrayBuffer::toNative(v8::Handle<v8::Object> object) |
} |
v8::ArrayBuffer::Contents v8Contents = v8buffer->Externalize(); |
- ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), |
+ ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), v8Contents.Shared(), |
V8ArrayBufferDeallocationObserver::instanceTemplate()); |
RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(contents); |
V8DOMWrapper::associateObjectWithWrapper<V8ArrayBuffer>(buffer.release(), &wrapperTypeInfo, object, v8::Isolate::GetCurrent(), WrapperConfiguration::Dependent); |