| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp
|
| index 177943638b0c910bd5de697b3f9a61f7d094b282..e351b251a358f7341632d4ae4934ecce9b83aa40 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp
|
| @@ -289,7 +289,13 @@ static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con
|
| TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder());
|
| bool optionalBooleanArgument;
|
| {
|
| - if (UNLIKELY(info.Length() <= 0)) {
|
| + int numArgsPassed = info.Length();
|
| + while (numArgsPassed > 0) {
|
| + if (!info[numArgsPassed - 1]->IsUndefined())
|
| + break;
|
| + --numArgsPassed;
|
| + }
|
| + if (UNLIKELY(numArgsPassed <= 0)) {
|
| v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg()), impl);
|
| return;
|
| }
|
| @@ -313,7 +319,13 @@ static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
|
| TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder());
|
| bool optionalBooleanArgument;
|
| {
|
| - if (UNLIKELY(info.Length() <= 0)) {
|
| + int numArgsPassed = info.Length();
|
| + while (numArgsPassed > 0) {
|
| + if (!info[numArgsPassed - 1]->IsUndefined())
|
| + break;
|
| + --numArgsPassed;
|
| + }
|
| + if (UNLIKELY(numArgsPassed <= 0)) {
|
| v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg()));
|
| return;
|
| }
|
|
|