| Index: Source/bindings/v8/custom/V8MessagePortCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8MessagePortCustom.cpp b/Source/bindings/v8/custom/V8MessagePortCustom.cpp
|
| index 80473b6876092712906937970c41374d3d5196bb..4c34183f278ae9b866a8a82602975a81a0cf107a 100644
|
| --- a/Source/bindings/v8/custom/V8MessagePortCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8MessagePortCustom.cpp
|
| @@ -41,30 +41,25 @@
|
|
|
| namespace WebCore {
|
|
|
| -void V8MessagePort::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
|
| +void V8MessagePort::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - MessagePort* messagePort = V8MessagePort::toNative(args.Holder());
|
| + MessagePort* messagePort = V8MessagePort::toNative(info.Holder());
|
| MessagePortArray portArray;
|
| ArrayBufferArray arrayBufferArray;
|
| - if (args.Length() > 1) {
|
| + if (info.Length() > 1) {
|
| bool notASequence = false;
|
| const int transferablesArgIndex = 1;
|
| - if (!extractTransferables(args[transferablesArgIndex], portArray, arrayBufferArray, notASequence, args.GetIsolate())) {
|
| + if (!extractTransferables(info[transferablesArgIndex], portArray, arrayBufferArray, notASequence, info.GetIsolate())) {
|
| if (notASequence)
|
| - throwTypeError(ExceptionMessages::failedToExecute("postMessage", "MessagePort", ExceptionMessages::notAnArrayTypeArgumentOrValue(transferablesArgIndex + 1)), args.GetIsolate());
|
| + throwTypeError(ExceptionMessages::failedToExecute("postMessage", "MessagePort", ExceptionMessages::notAnArrayTypeArgumentOrValue(transferablesArgIndex + 1)), info.GetIsolate());
|
| return;
|
| }
|
| }
|
| bool didThrow = false;
|
| - RefPtr<SerializedScriptValue> message =
|
| - SerializedScriptValue::create(args[0],
|
| - &portArray,
|
| - &arrayBufferArray,
|
| - didThrow,
|
| - args.GetIsolate());
|
| + RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &portArray, &arrayBufferArray, didThrow, info.GetIsolate());
|
| if (didThrow)
|
| return;
|
| - ExceptionState es(args.GetIsolate());
|
| + ExceptionState es(info.GetIsolate());
|
| messagePort->postMessage(message.release(), &portArray, es);
|
| es.throwIfNeeded();
|
| }
|
|
|