| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp
|
| index 2ccd74eb7da1809f9474399534f21044abef338e..6d35c962647bdfac04f402c5f7893d8c2d5723e1 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp
|
| @@ -154,7 +154,13 @@ static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
|
| TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder());
|
| Vector<int> arrayOfLongsArg;
|
| {
|
| - if (UNLIKELY(info.Length() <= 0)) {
|
| + int numArgsPassed = info.Length();
|
| + while (numArgsPassed > 0) {
|
| + if (!info[numArgsPassed - 1]->IsUndefined())
|
| + break;
|
| + --numArgsPassed;
|
| + }
|
| + if (UNLIKELY(numArgsPassed <= 0)) {
|
| impl->voidMethodArrayOfLongsArg();
|
| return;
|
| }
|
|
|