Chromium Code Reviews| Index: Source/bindings/tests/results/V8TestObject.cpp |
| diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp |
| index 240cde609c6b6751b29ecfe244d3b3709a0e6cf1..7136457d312941bff78eb29da14d1494f2de23d7 100644 |
| --- a/Source/bindings/tests/results/V8TestObject.cpp |
| +++ b/Source/bindings/tests/results/V8TestObject.cpp |
| @@ -8190,7 +8190,11 @@ static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& |
| { |
| v8::TryCatch block; |
| V8RethrowTryCatchScope rethrow(block); |
| - TONATIVE_VOID_INTERNAL(testDictionaryArg, V8TestDictionary::toNative(info.GetIsolate(), info[0])); |
| + if (!info[0]->IsUndefined()) { |
| + TONATIVE_VOID_INTERNAL(testDictionaryArg, V8TestDictionary::toNative(info.GetIsolate(), info[0])); |
| + } else { |
| + testDictionaryArg = TestDictionary::create(); |
|
haraken
2014/08/26 04:00:40
Can you add a test case for this branch to a layou
bashi
2014/08/27 05:06:32
Done.
|
| + } |
| } |
| impl->overloadedMethodJ(testDictionaryArg); |
| } |