| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index eb039ef987f3f99339daed14701f54a8a84f714c..15283ed3c635b73b04809fd257b63ed595dc59d3 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -455,14 +455,15 @@ void postMessageImpl(const char* interfaceName, {{cpp_class}}* instance, const v
|
| }
|
| OwnPtrWillBeRawPtr<MessagePortArray> ports = adoptPtrWillBeNoop(new MessagePortArray);
|
| ArrayBufferArray arrayBuffers;
|
| + SharedArrayBufferArray sharedArrayBuffers;
|
| if (info.Length() > 1) {
|
| const int transferablesArgIndex = 1;
|
| - if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info[transferablesArgIndex], transferablesArgIndex, *ports, arrayBuffers, exceptionState)) {
|
| + if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info[transferablesArgIndex], transferablesArgIndex, *ports, arrayBuffers, sharedArrayBuffers, exceptionState)) {
|
| exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| }
|
| - RefPtr<SerializedScriptValue> message = SerializedScriptValueFactory::instance().create(info.GetIsolate(), info[0], ports.get(), &arrayBuffers, exceptionState);
|
| + RefPtr<SerializedScriptValue> message = SerializedScriptValueFactory::instance().create(info.GetIsolate(), info[0], ports.get(), &arrayBuffers, &sharedArrayBuffers, exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
| // FIXME: Only pass context/exceptionState if instance really requires it.
|
|
|