Index: Source/bindings/core/v8/custom/V8WindowCustom.cpp |
diff --git a/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
index 12f7827210682ecb740ff74f458ab9f17c74aabe..16c5d1e3c74bc9772c4fc966a9cda16097e9e826 100644 |
--- a/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8WindowCustom.cpp |
@@ -45,6 +45,7 @@ |
#include "bindings/core/v8/V8HiddenValue.h" |
#include "bindings/core/v8/V8Node.h" |
#include "core/dom/DOMArrayBuffer.h" |
+#include "core/dom/DOMSharedArrayBuffer.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/MessagePort.h" |
#include "core/frame/FrameView.h" |
@@ -196,6 +197,7 @@ void V8Window::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value> |
// postMessage(message, {sequence of transferrables}, targetOrigin); |
OwnPtrWillBeRawPtr<MessagePortArray> portArray = adoptPtrWillBeNoop(new MessagePortArray); |
ArrayBufferArray arrayBufferArray; |
+ SharedArrayBufferArray sharedArrayBufferArray; |
int targetOriginArgIndex = 1; |
if (info.Length() > 2) { |
int transferablesArgIndex = 2; |
@@ -204,14 +206,14 @@ void V8Window::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value> |
targetOriginArgIndex = 2; |
transferablesArgIndex = 1; |
} |
- if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info[transferablesArgIndex], transferablesArgIndex, *portArray, arrayBufferArray, exceptionState)) { |
+ if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info[transferablesArgIndex], transferablesArgIndex, *portArray, arrayBufferArray, sharedArrayBufferArray, exceptionState)) { |
exceptionState.throwIfNeeded(); |
return; |
} |
} |
TOSTRING_VOID(V8StringResource<TreatNullAndUndefinedAsNullString>, targetOrigin, info[targetOriginArgIndex]); |
- RefPtr<SerializedScriptValue> message = SerializedScriptValueFactory::instance().create(info.GetIsolate(), info[0], portArray.get(), &arrayBufferArray, exceptionState); |
+ RefPtr<SerializedScriptValue> message = SerializedScriptValueFactory::instance().create(info.GetIsolate(), info[0], portArray.get(), &arrayBufferArray, &sharedArrayBufferArray, exceptionState); |
if (exceptionState.throwIfNeeded()) |
return; |