| Index: Source/bindings/tests/results/core/V8TestTypedefs.cpp
|
| diff --git a/Source/bindings/tests/results/core/V8TestTypedefs.cpp b/Source/bindings/tests/results/core/V8TestTypedefs.cpp
|
| index 14b31a796a855db8eba18ee9551948e1596171bb..1b468e594e131fd965fc4ebd8ff8a5a807bf1ad8 100644
|
| --- a/Source/bindings/tests/results/core/V8TestTypedefs.cpp
|
| +++ b/Source/bindings/tests/results/core/V8TestTypedefs.cpp
|
| @@ -53,7 +53,7 @@ static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
|
| v8::Local<v8::Object> holder = info.Holder();
|
| ExceptionState exceptionState(ExceptionState::SetterContext, "uLongLongAttribute", "TestTypedefs", holder, info.GetIsolate());
|
| TestTypedefs* impl = V8TestTypedefs::toImpl(holder);
|
| - TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState);
|
| + TONATIVE_DECLARE(unsigned long long, cppValue, convertAndThrow(cppValue = toUInt64(v8Value, exceptionState), exceptionState), return);
|
| impl->setULongLongAttribute(cppValue);
|
| }
|
|
|
| @@ -95,7 +95,7 @@ static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
|
| impl->voidMethodArrayOfLongsArg();
|
| return;
|
| }
|
| - TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayOfLongsArg, toImplArray<int>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState);
|
| + TONATIVE_CONVERT(convertAndThrow(arrayOfLongsArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return);
|
| }
|
| impl->voidMethodArrayOfLongsArg(arrayOfLongsArg);
|
| }
|
| @@ -119,8 +119,8 @@ static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
|
| float floatArg;
|
| V8StringResource<> stringArg;
|
| {
|
| - TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toFloat(info[0], exceptionState), exceptionState);
|
| - TOSTRING_VOID_INTERNAL(stringArg, info[1]);
|
| + TONATIVE_CONVERT(convertAndThrow(floatArg = toFloat(info[0], exceptionState), exceptionState), return);
|
| + TONATIVE_CONVERT((stringArg = info[1]).prepare(), return);
|
| }
|
| impl->voidMethodFloatArgStringArg(floatArg, stringArg);
|
| }
|
| @@ -168,7 +168,7 @@ static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethod(const v8::Fun
|
| TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder());
|
| Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptyTypeSequenceArg;
|
| {
|
| - TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceEmptyTypeSequenceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState);
|
| + TONATIVE_CONVERT(convertAndThrow(testInterfaceEmptyTypeSequenceArg = (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState), return);
|
| }
|
| v8SetReturnValue(info, static_cast<double>(impl->uLongLongMethodTestInterfaceEmptyTypeSequenceArg(testInterfaceEmptyTypeSequenceArg)));
|
| }
|
| @@ -221,7 +221,7 @@ static void arrayOfStringsMethodArrayOfStringsArgMethod(const v8::FunctionCallba
|
| TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder());
|
| Vector<String> arrayOfStringsArg;
|
| {
|
| - TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayOfStringsArg, toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState);
|
| + TONATIVE_CONVERT(convertAndThrow(arrayOfStringsArg = toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return);
|
| }
|
| v8SetReturnValue(info, toV8(impl->arrayOfStringsMethodArrayOfStringsArg(arrayOfStringsArg), info.Holder(), info.GetIsolate()));
|
| }
|
| @@ -244,7 +244,7 @@ static void stringArrayMethodStringArrayArgMethod(const v8::FunctionCallbackInfo
|
| TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder());
|
| Vector<String> stringArrayArg;
|
| {
|
| - TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringArrayArg, toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState);
|
| + TONATIVE_CONVERT(convertAndThrow(stringArrayArg = toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return);
|
| }
|
| v8SetReturnValue(info, toV8(impl->stringArrayMethodStringArrayArg(stringArrayArg), info.Holder(), info.GetIsolate()));
|
| }
|
| @@ -264,7 +264,7 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| }
|
| V8StringResource<> stringArg;
|
| {
|
| - TOSTRING_VOID_INTERNAL(stringArg, info[0]);
|
| + TONATIVE_CONVERT((stringArg = info[0]).prepare(), return);
|
| }
|
| RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg);
|
| v8::Local<v8::Object> wrapper = info.Holder();
|
|
|