Index: Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp b/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp |
index b42e32cdfab814437c9f36e3d9dee0359ba79ebd..6f232d84b03534895bc4fb3c808c3888e6250029 100644 |
--- a/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp |
+++ b/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp |
@@ -67,20 +67,20 @@ static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) |
TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], exceptionState), exceptionState); |
TOSTRING_VOID_INTERNAL(stringArg, info[1]); |
TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[2])); |
- TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[3], info.GetIsolate())); |
- if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
+ if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) { |
exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not an object."); |
exceptionState.throwIfNeeded(); |
return; |
} |
+ TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[3], info.GetIsolate())); |
TONATIVE_VOID_INTERNAL(sequenceStringArg, toImplArray<String>(info[4], 5, info.GetIsolate())); |
TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toImplArray<Dictionary>(info[5], 6, info.GetIsolate())); |
- TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.GetIsolate())); |
- if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isObject()) { |
+ if (!isUndefinedOrNull(info[6]) && !info[6]->IsObject()) { |
exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg') is not an object."); |
exceptionState.throwIfNeeded(); |
return; |
} |
+ TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.GetIsolate())); |
TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[7])); |
} |
ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate()); |