| Index: Source/bindings/v8/custom/V8MessageEventCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8MessageEventCustom.cpp b/Source/bindings/v8/custom/V8MessageEventCustom.cpp
|
| index 21c4f0e438a703721f63c368238681c3cd44a71c..3b7301ef63b29e3817e27b6676ad68ecbbc1d208 100644
|
| --- a/Source/bindings/v8/custom/V8MessageEventCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8MessageEventCustom.cpp
|
| @@ -116,9 +116,10 @@ void V8MessageEvent::initMessageEventMethodCustom(const v8::FunctionCallbackInfo
|
| }
|
| OwnPtr<MessagePortArray> portArray;
|
|
|
| - if (!isUndefinedOrNull(args[7])) {
|
| + const int portArrayIndex = 7;
|
| + if (!isUndefinedOrNull(args[portArrayIndex])) {
|
| portArray = adoptPtr(new MessagePortArray);
|
| - if (!getMessagePortArray(args[7], *portArray, args.GetIsolate()))
|
| + if (!getMessagePortArray(args[portArrayIndex], portArrayIndex + 1, *portArray, args.GetIsolate()))
|
| return;
|
| }
|
| event->initMessageEvent(typeArg, canBubbleArg, cancelableArg, originArg, lastEventIdArg, sourceArg, portArray.release());
|
|
|