| Index: Source/bindings/tests/results/V8TestObject.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp
|
| index 427a000e4ba10444527c45fd70e15552b5acc7e3..91867f688799a8633a883ba72cb877984f3984a6 100644
|
| --- a/Source/bindings/tests/results/V8TestObject.cpp
|
| +++ b/Source/bindings/tests/results/V8TestObject.cpp
|
| @@ -4801,7 +4801,7 @@ static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| double dateArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(dateArg, toCoreDate(info[0]));
|
| }
|
| impl->voidMethodDateArg(dateArg);
|
| @@ -4823,7 +4823,7 @@ static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| V8StringResource<> stringArg;
|
| {
|
| - TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]);
|
| + TOSTRING_VOID_INTERNAL(stringArg, info[0]);
|
| }
|
| impl->voidMethodStringArg(stringArg);
|
| }
|
| @@ -4845,7 +4845,7 @@ static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| unsigned long long domTimeStampArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodDOMTimeStampArg(domTimeStampArg);
|
| @@ -4867,7 +4867,7 @@ static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| bool booleanArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(booleanArg, info[0]->BooleanValue());
|
| }
|
| impl->voidMethodBooleanArg(booleanArg);
|
| @@ -4890,7 +4890,7 @@ static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int byteArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodByteArg(byteArg);
|
| @@ -4912,7 +4912,7 @@ static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| double doubleArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberValue()));
|
| }
|
| impl->voidMethodDoubleArg(doubleArg);
|
| @@ -4934,7 +4934,7 @@ static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| float floatArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue()));
|
| }
|
| impl->voidMethodFloatArg(floatArg);
|
| @@ -4957,7 +4957,7 @@ static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodLongArg(longArg);
|
| @@ -4980,7 +4980,7 @@ static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| long long longLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodLongLongArg(longLongArg);
|
| @@ -5003,7 +5003,7 @@ static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| unsigned octetArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodOctetArg(octetArg);
|
| @@ -5026,7 +5026,7 @@ static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int shortArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodShortArg(shortArg);
|
| @@ -5049,7 +5049,7 @@ static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| unsigned unsignedLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodUnsignedLongArg(unsignedLongArg);
|
| @@ -5072,7 +5072,7 @@ static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| unsigned long long unsignedLongLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg);
|
| @@ -5095,7 +5095,7 @@ static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| unsigned unsignedShortArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodUnsignedShortArg(unsignedShortArg);
|
| @@ -5130,7 +5130,7 @@ static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
|
| @@ -5154,7 +5154,7 @@ static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
|
| int longArg;
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1]));
|
| }
|
| @@ -5203,7 +5203,7 @@ static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| ScriptValue voidCallbackFunctionArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(voidCallbackFunctionArg, ScriptValue(ScriptState::current(info.GetIsolate()), info[0]));
|
| }
|
| impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg);
|
| @@ -5225,7 +5225,7 @@ static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| ScriptValue anyCallbackFunctionOptionalAnyArgArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(anyCallbackFunctionOptionalAnyArgArg, ScriptValue(ScriptState::current(info.GetIsolate()), info[0]));
|
| }
|
| impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptionalAnyArgArg);
|
| @@ -5273,7 +5273,7 @@ static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Range::CompareHow compareHowArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(compareHowArg, static_cast<Range::CompareHow>(info[0]->Int32Value()));
|
| }
|
| impl->voidMethodCompareHowArg(compareHowArg);
|
| @@ -5295,7 +5295,7 @@ static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| EventTarget* eventTargetArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(eventTargetArg, V8DOMWrapper::isDOMWrapper(info[0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8::Handle<v8::Object>::Cast(info[0])) : 0);
|
| }
|
| impl->voidMethodEventTargetArg(eventTargetArg);
|
| @@ -5317,7 +5317,7 @@ static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::current(info.GetIsolate()), info[0])));
|
| }
|
| impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg);
|
| @@ -5339,7 +5339,7 @@ static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| ScriptValue anyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(anyArg, ScriptValue(ScriptState::current(info.GetIsolate()), info[0]));
|
| }
|
| impl->voidMethodAnyArg(anyArg);
|
| @@ -5361,7 +5361,7 @@ static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Attr* attrArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->voidMethodAttrArg(attrArg);
|
| @@ -5383,7 +5383,7 @@ static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Document* documentArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(documentArg, V8Document::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->voidMethodDocumentArg(documentArg);
|
| @@ -5405,7 +5405,7 @@ static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| DocumentType* documentTypeArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(documentTypeArg, V8DocumentType::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->voidMethodDocumentTypeArg(documentTypeArg);
|
| @@ -5427,7 +5427,7 @@ static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Element* elementArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(elementArg, V8Element::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->voidMethodElementArg(elementArg);
|
| @@ -5449,7 +5449,7 @@ static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Node* nodeArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->voidMethodNodeArg(nodeArg);
|
| @@ -5536,7 +5536,7 @@ static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| ArrayBuffer* arrayBufferArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8ArrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
|
| }
|
| impl->voidMethodArrayBufferArg(arrayBufferArg);
|
| @@ -5558,7 +5558,7 @@ static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| ArrayBuffer* arrayBufferArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8ArrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
|
| }
|
| impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
|
| @@ -5580,7 +5580,7 @@ static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| ArrayBufferView* arrayBufferViewArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(arrayBufferViewArg, info[0]->IsArrayBufferView() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0);
|
| }
|
| impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
|
| @@ -5602,7 +5602,7 @@ static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Float32Array* float32ArrayArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(float32ArrayArg, info[0]->IsFloat32Array() ? V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0);
|
| }
|
| impl->voidMethodFloat32ArrayArg(float32ArrayArg);
|
| @@ -5624,7 +5624,7 @@ static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Int32Array* int32ArrayArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(int32ArrayArg, info[0]->IsInt32Array() ? V8Int32Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0);
|
| }
|
| impl->voidMethodInt32ArrayArg(int32ArrayArg);
|
| @@ -5646,7 +5646,7 @@ static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Uint8Array* uint8ArrayArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0);
|
| }
|
| impl->voidMethodUint8ArrayArg(uint8ArrayArg);
|
| @@ -5707,7 +5707,7 @@ static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Vector<int> arrayLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(arrayLongArg, toNativeArray<int>(info[0], 1, info.GetIsolate()));
|
| }
|
| impl->voidMethodArrayLongArg(arrayLongArg);
|
| @@ -5729,7 +5729,7 @@ static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Vector<String> arrayStringArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(arrayStringArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
|
| }
|
| impl->voidMethodArrayStringArg(arrayStringArg);
|
| @@ -5751,7 +5751,7 @@ static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(arrayTestInterfaceEmptyArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
|
| }
|
| impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg);
|
| @@ -5812,7 +5812,7 @@ static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Vector<int> longSequenceArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(longSequenceArg, toNativeArray<int>(info[0], 1, info.GetIsolate()));
|
| }
|
| impl->voidMethodSequenceLongArg(longSequenceArg);
|
| @@ -5834,7 +5834,7 @@ static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Vector<String> stringSequenceArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(stringSequenceArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
|
| }
|
| impl->voidMethodSequenceStringArg(stringSequenceArg);
|
| @@ -5856,7 +5856,7 @@ static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptySequenceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
|
| }
|
| impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg);
|
| @@ -5878,7 +5878,7 @@ static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* nullableTestInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(nullableTestInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg);
|
| @@ -5986,12 +5986,11 @@ static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| V8StringResource<> testEnumTypeArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]);
|
| String string = testEnumTypeArg;
|
| if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || string == "EnumValue3")) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), info.GetIsolate());
|
| - block.ReThrow();
|
| return;
|
| }
|
| }
|
| @@ -6079,11 +6078,10 @@ static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Dictionary dictionaryArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[0], info.GetIsolate()));
|
| if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryArg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetIsolate());
|
| - block.ReThrow();
|
| return;
|
| }
|
| }
|
| @@ -6130,7 +6128,7 @@ static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.Holder(), ScriptState::current(info.GetIsolate())));
|
| }
|
| impl->voidMethodNodeFilterArg(nodeFilterArg.release());
|
| @@ -6152,11 +6150,10 @@ static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| ScriptPromise promiseArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(promiseArg, ScriptPromise::cast(ScriptState::current(info.GetIsolate()), info[0]));
|
| if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg", "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate());
|
| - block.ReThrow();
|
| return;
|
| }
|
| }
|
| @@ -6205,7 +6202,7 @@ static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(xPathNSResolverArg, toXPathNSResolver(info[0], info.GetIsolate()));
|
| }
|
| impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release());
|
| @@ -6227,7 +6224,7 @@ static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Vector<Dictionary> dictionarySequenceArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(dictionarySequenceArg, toNativeArray<Dictionary>(info[0], 1, info.GetIsolate()));
|
| }
|
| impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
|
| @@ -6251,7 +6248,7 @@ static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
|
| V8StringResource<> stringArg;
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TOSTRING_VOID_INTERNAL(stringArg, info[0]);
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptionState), exceptionState);
|
| }
|
| @@ -6274,7 +6271,7 @@ static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
|
| impl->voidMethodOptionalStringArg();
|
| return;
|
| }
|
| - TOSTRING_VOID_INTERNAL_NOTRYCATCH(optionalStringArg, info[0]);
|
| + TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]);
|
| }
|
| impl->voidMethodOptionalStringArg(optionalStringArg);
|
| }
|
| @@ -6291,7 +6288,7 @@ static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* optionalTestInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| impl->voidMethodOptionalTestInterfaceEmptyArg();
|
| return;
|
| @@ -6314,7 +6311,7 @@ static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int optionalLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| impl->voidMethodOptionalLongArg();
|
| return;
|
| @@ -6337,7 +6334,7 @@ static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int optionalLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.GetIsolate());
|
| return;
|
| @@ -6360,7 +6357,7 @@ static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int optionalLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg());
|
| return;
|
| @@ -6383,7 +6380,7 @@ static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int optionalLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| v8SetReturnValueInt(info, impl->longMethodOptionalLongArg());
|
| return;
|
| @@ -6411,7 +6408,7 @@ static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
|
| int longArg;
|
| int optionalLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| if (UNLIKELY(info.Length() <= 1)) {
|
| impl->voidMethodLongArgOptionalLongArg(longArg);
|
| @@ -6441,7 +6438,7 @@ static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
|
| int optionalLongArg1;
|
| int optionalLongArg2;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| if (UNLIKELY(info.Length() <= 1)) {
|
| impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg);
|
| @@ -6475,7 +6472,7 @@ static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
|
| int longArg;
|
| TestInterfaceEmpty* optionalTestInterfaceEmpty;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| if (UNLIKELY(info.Length() <= 1)) {
|
| impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg);
|
| @@ -6504,7 +6501,7 @@ static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
|
| TestInterfaceEmpty* optionalTestInterfaceEmpty;
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| if (UNLIKELY(info.Length() <= 1)) {
|
| impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmpty);
|
| @@ -6527,11 +6524,10 @@ static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Dictionary optionalDictionaryArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[0], info.GetIsolate()));
|
| if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isObject()) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDictionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an object."), info.GetIsolate());
|
| - block.ReThrow();
|
| return;
|
| }
|
| }
|
| @@ -6550,7 +6546,7 @@ static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Vector<String> variadicStringArgs;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(info, 0));
|
| }
|
| impl->voidMethodVariadicStringArg(variadicStringArgs);
|
| @@ -6573,7 +6569,7 @@ static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
|
| V8StringResource<> stringArg;
|
| Vector<String> variadicStringArgs;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TOSTRING_VOID_INTERNAL(stringArg, info[0]);
|
| TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(info, 1));
|
| }
|
| @@ -6620,12 +6616,11 @@ static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| for (int i = 1; i < info.Length(); ++i) {
|
| if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
|
| - block.ReThrow();
|
| return;
|
| }
|
| variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[i])));
|
| @@ -6693,7 +6688,7 @@ static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->overloadedMethodA(longArg);
|
| @@ -6706,7 +6701,7 @@ static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| int longArg1;
|
| int longArg2;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], exceptionState), exceptionState);
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], exceptionState), exceptionState);
|
| }
|
| @@ -6752,7 +6747,7 @@ static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->overloadedMethodB(longArg);
|
| @@ -6765,7 +6760,7 @@ static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| V8StringResource<> stringArg;
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TOSTRING_VOID_INTERNAL(stringArg, info[0]);
|
| if (UNLIKELY(info.Length() <= 1)) {
|
| impl->overloadedMethodB(stringArg);
|
| @@ -6819,7 +6814,7 @@ static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->overloadedMethodC(longArg);
|
| @@ -6830,7 +6825,7 @@ static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->overloadedMethodC(testInterfaceEmptyArg);
|
| @@ -6873,7 +6868,7 @@ static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->overloadedMethodD(longArg);
|
| @@ -6884,7 +6879,7 @@ static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| Vector<int> longArrayArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(longArrayArg, toNativeArray<int>(info[0], 1, info.GetIsolate()));
|
| }
|
| impl->overloadedMethodD(longArrayArg);
|
| @@ -6927,7 +6922,7 @@ static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->overloadedMethodE(longArg);
|
| @@ -6938,7 +6933,7 @@ static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->overloadedMethodE(testInterfaceEmptyOrNullArg);
|
| @@ -6988,7 +6983,7 @@ static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| impl->overloadedMethodF();
|
| return;
|
| }
|
| - TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]);
|
| + TOSTRING_VOID_INTERNAL(stringArg, info[0]);
|
| }
|
| impl->overloadedMethodF(stringArg);
|
| }
|
| @@ -6998,7 +6993,7 @@ static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| double doubleArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberValue()));
|
| }
|
| impl->overloadedMethodF(doubleArg);
|
| @@ -7051,7 +7046,7 @@ static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->overloadedMethodG(longArg);
|
| @@ -7062,7 +7057,7 @@ static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->overloadedMethodG(testInterfaceEmptyOrNullArg);
|
| @@ -7108,7 +7103,7 @@ static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceImplementation* testInterfaceArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceArg, V8TestInterface::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->overloadedMethodH(testInterfaceArg);
|
| @@ -7119,7 +7114,7 @@ static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->overloadedMethodH(testInterfaceEmptyArg);
|
| @@ -7161,7 +7156,7 @@ static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| V8StringResource<> stringArg;
|
| {
|
| - TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]);
|
| + TOSTRING_VOID_INTERNAL(stringArg, info[0]);
|
| }
|
| impl->overloadedMethodI(stringArg);
|
| }
|
| @@ -7171,7 +7166,7 @@ static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| double doubleArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberValue()));
|
| }
|
| impl->overloadedMethodI(doubleArg);
|
| @@ -7226,7 +7221,7 @@ static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->overloadedPerWorldBindingsMethod(longArg);
|
| @@ -7271,7 +7266,7 @@ static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->overloadedPerWorldBindingsMethod(longArg);
|
| @@ -7315,7 +7310,7 @@ static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| TestObject::overloadedStaticMethod(longArg);
|
| @@ -7327,7 +7322,7 @@ static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
|
| int longArg1;
|
| int longArg2;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], exceptionState), exceptionState);
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], exceptionState), exceptionState);
|
| }
|
| @@ -7377,7 +7372,7 @@ static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| unsigned clampUnsignedShortArg = 0;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| double clampUnsignedShortArgNativeValue;
|
| TONATIVE_VOID_INTERNAL(clampUnsignedShortArgNativeValue, info[0]->NumberValue());
|
| if (!std::isnan(clampUnsignedShortArgNativeValue))
|
| @@ -7403,7 +7398,7 @@ static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| unsigned clampUnsignedLongArg = 0;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| double clampUnsignedLongArgNativeValue;
|
| TONATIVE_VOID_INTERNAL(clampUnsignedLongArgNativeValue, info[0]->NumberValue());
|
| if (!std::isnan(clampUnsignedLongArgNativeValue))
|
| @@ -7424,7 +7419,7 @@ static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(defaultUndefinedTestInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInterfaceEmptyArg);
|
| @@ -7443,7 +7438,7 @@ static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int defaultUndefinedLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg);
|
| @@ -7461,7 +7456,7 @@ static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| V8StringResource<> defaultUndefinedStringArg;
|
| {
|
| - TOSTRING_VOID_INTERNAL_NOTRYCATCH(defaultUndefinedStringArg, info[0]);
|
| + TOSTRING_VOID_INTERNAL(defaultUndefinedStringArg, info[0]);
|
| }
|
| impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg);
|
| }
|
| @@ -7478,7 +7473,7 @@ static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| V8StringResource<> defaultNullStringStringArg;
|
| {
|
| - TOSTRING_VOID_INTERNAL_NOTRYCATCH(defaultNullStringStringArg, argumentOrNull(info, 0));
|
| + TOSTRING_VOID_INTERNAL(defaultNullStringStringArg, argumentOrNull(info, 0));
|
| }
|
| impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg);
|
| }
|
| @@ -7500,7 +7495,7 @@ static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int enforceRangeLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[0], EnforceRange, exceptionState), exceptionState);
|
| }
|
| impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg);
|
| @@ -7522,7 +7517,7 @@ static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| V8StringResource<WithNullCheck> treatNullAsNullStringStringArg;
|
| {
|
| - TOSTRING_VOID_INTERNAL_NOTRYCATCH(treatNullAsNullStringStringArg, info[0]);
|
| + TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
|
| }
|
| impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringArg);
|
| }
|
| @@ -7543,7 +7538,7 @@ static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| V8StringResource<WithUndefinedOrNullCheck> treatNullAsNullStringStringArg;
|
| {
|
| - TOSTRING_VOID_INTERNAL_NOTRYCATCH(treatNullAsNullStringStringArg, info[0]);
|
| + TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
|
| }
|
| impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(treatNullAsNullStringStringArg);
|
| }
|
| @@ -7651,7 +7646,7 @@ static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| bool optionalBooleanArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| ScriptState* scriptState = ScriptState::current(info.GetIsolate());
|
| RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
|
| @@ -7862,7 +7857,7 @@ static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int arg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->DeprecateAsOverloadedMethod(arg);
|
| @@ -7915,7 +7910,7 @@ static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int arg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->DeprecateAsSameValueOverloadedMethod(arg);
|
| @@ -7967,7 +7962,7 @@ static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int arg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->measureAsOverloadedMethod(arg);
|
| @@ -8020,7 +8015,7 @@ static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int arg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->measureAsSameValueOverloadedMethod(arg);
|
| @@ -8072,7 +8067,7 @@ static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int arg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg);
|
| @@ -8126,7 +8121,7 @@ static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int arg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg);
|
| @@ -8180,7 +8175,7 @@ static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int arg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg);
|
| @@ -8282,7 +8277,7 @@ static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
|
| @@ -8304,7 +8299,7 @@ static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
|
| @@ -8427,7 +8422,7 @@ static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int optionalLongArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState);
|
| if (exceptionState.hadException()) {
|
| @@ -8541,7 +8536,7 @@ static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| int longArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState);
|
| }
|
| ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate());
|
| @@ -8659,10 +8654,9 @@ static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8:
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) {
|
| throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
|
| - block.ReThrow();
|
| return;
|
| }
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| @@ -8686,7 +8680,7 @@ static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| }
|
| impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfaceEmptyOrNullArg);
|
| @@ -8708,10 +8702,9 @@ static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) {
|
| throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
|
| - block.ReThrow();
|
| return;
|
| }
|
| TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| @@ -8736,17 +8729,15 @@ static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8::
|
| float floatArg;
|
| double doubleArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue()));
|
| if (!std::isfinite(floatArg)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-finite."), info.GetIsolate());
|
| - block.ReThrow();
|
| return;
|
| }
|
| TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[1]->NumberValue()));
|
| if (!std::isfinite(doubleArg)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", "TestObject", "double parameter 2 is non-finite."), info.GetIsolate());
|
| - block.ReThrow();
|
| return;
|
| }
|
| }
|
| @@ -8782,7 +8773,7 @@ static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageCollectedSequenceArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate())));
|
| }
|
| impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbageCollectedSequenceArg);
|
| @@ -8804,7 +8795,7 @@ static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageCollectedArrayArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate())));
|
| }
|
| impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCollectedArrayArg);
|
| @@ -8826,7 +8817,7 @@ static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > testInterfaceWillBeGarbageCollectedSequenceArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
|
| }
|
| impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterfaceWillBeGarbageCollectedSequenceArg);
|
| @@ -8848,7 +8839,7 @@ static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > testInterfaceWillBeGarbageCollectedArrayArg;
|
| {
|
| - v8::TryCatch block;
|
| + V8TryPropagate block;
|
| TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
|
| }
|
| impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWillBeGarbageCollectedArrayArg);
|
|
|