Chromium Code Reviews| Index: Source/bindings/tests/results/V8TestObjectPython.cpp |
| diff --git a/Source/bindings/tests/results/V8TestObjectPython.cpp b/Source/bindings/tests/results/V8TestObjectPython.cpp |
| index 4207dd782fe4aa0c06bcb4066dc3ac92537d19f0..0fd3201d1630f02055bb9ec2e52c6cfd9cfaa8a8 100644 |
| --- a/Source/bindings/tests/results/V8TestObjectPython.cpp |
| +++ b/Source/bindings/tests/results/V8TestObjectPython.cpp |
| @@ -1553,7 +1553,7 @@ static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca |
| static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| { |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
| + ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityForNodeReadonlyDocumentAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate()); |
| if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { |
| v8SetReturnValueNull(info); |
| exceptionState.throwIfNeeded(); |
| @@ -1854,7 +1854,7 @@ static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func |
| static void getterRaisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| { |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
| + ExceptionState exceptionState(ExceptionState::GetterContext, "getterRaisesExceptionLongAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate()); |
| int jsValue = imp->getterRaisesExceptionLongAttribute(exceptionState); |
| if (UNLIKELY(exceptionState.throwIfNeeded())) |
| return; |
| @@ -2379,7 +2379,7 @@ static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA |
| static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| { |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
| + ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptionLongAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate()); |
| int jsValue = imp->raisesExceptionLongAttribute(exceptionState); |
| if (UNLIKELY(exceptionState.throwIfNeeded())) |
| return; |
| @@ -2395,9 +2395,9 @@ static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St |
| static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
| imp->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
| exceptionState.throwIfNeeded(); |
| } |
| @@ -2874,9 +2874,9 @@ static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< |
| static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesExceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
| imp->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
| exceptionState.throwIfNeeded(); |
| } |
| @@ -2903,6 +2903,7 @@ static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8 |
| static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeCheckingFloatAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue())); |
| imp->setStrictTypeCheckingFloatAttribute(cppValue); |
| @@ -2930,8 +2931,10 @@ static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8:: |
| static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeCheckingTestInterfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate()))) { |
| - throwTypeError(ExceptionMessages::failedToSet("strictTypeCheckingTestInterfaceAttribute", "TestObjectPython", "The provided value is not of type 'TestInterface'."), info.GetIsolate()); |
| + exceptionState.throwTypeError("The provided value is not of type 'TestInterface'."); |
| + exceptionState.throwIfNeeded(); |
| return; |
| } |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| @@ -3137,6 +3140,7 @@ static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str |
| static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
|
sof
2013/12/04 10:48:38
Is this still expected? (File not regenerated sinc
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->voidMethod(); |
| } |
| @@ -3150,6 +3154,7 @@ static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
| static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython::staticVoidMethod(); |
| } |
| @@ -3162,6 +3167,7 @@ static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
| static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "dateMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, v8DateOrNull(imp->dateMethod(), info.GetIsolate())); |
| } |
| @@ -3175,6 +3181,7 @@ static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
| static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueString(info, imp->stringMethod(), info.GetIsolate()); |
| } |
| @@ -3188,6 +3195,7 @@ static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> |
| static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "readonlyDOMTimeStampMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampMethod())); |
| } |
| @@ -3201,6 +3209,7 @@ static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI |
| static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "booleanMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueBool(info, imp->booleanMethod()); |
| } |
| @@ -3214,6 +3223,7 @@ static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value |
| static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "byteMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueInt(info, imp->byteMethod()); |
| } |
| @@ -3227,6 +3237,7 @@ static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
| static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "doubleMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->doubleMethod()); |
| } |
| @@ -3240,6 +3251,7 @@ static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> |
| static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "floatMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->floatMethod()); |
| } |
| @@ -3253,6 +3265,7 @@ static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
| static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueInt(info, imp->longMethod()); |
| } |
| @@ -3266,6 +3279,7 @@ static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
| static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "longLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, static_cast<double>(imp->longLongMethod())); |
| } |
| @@ -3279,6 +3293,7 @@ static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu |
| static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "octetMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueUnsigned(info, imp->octetMethod()); |
| } |
| @@ -3292,6 +3307,7 @@ static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
| static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueInt(info, imp->shortMethod()); |
| } |
| @@ -3305,6 +3321,7 @@ static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
| static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueUnsigned(info, imp->unsignedLongMethod()); |
| } |
| @@ -3318,6 +3335,7 @@ static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: |
| static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedLongLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongMethod())); |
| } |
| @@ -3331,6 +3349,7 @@ static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo< |
| static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedShortMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueUnsigned(info, imp->unsignedShortMethod()); |
| } |
| @@ -3344,6 +3363,7 @@ static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: |
| static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDateArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3362,6 +3382,7 @@ static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3380,6 +3401,7 @@ static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: |
| static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodBooleanArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3398,6 +3420,7 @@ static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 |
| static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodByteArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodByteArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3416,6 +3439,7 @@ static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDoubleArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3434,6 +3458,7 @@ static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: |
| static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodFloatArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3452,6 +3477,7 @@ static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: |
| static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3470,6 +3496,7 @@ static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3488,6 +3515,7 @@ static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v |
| static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOctetArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodOctetArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3506,6 +3534,7 @@ static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: |
| static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3524,6 +3553,7 @@ static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: |
| static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUnsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3542,6 +3572,7 @@ static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn |
| static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUnsignedLongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLongLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3560,6 +3591,7 @@ static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba |
| static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUnsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3578,6 +3610,7 @@ static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI |
| static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfaceEmptyMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->testInterfaceEmptyMethod()); |
| } |
| @@ -3591,6 +3624,7 @@ static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf |
| static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3609,6 +3643,7 @@ static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall |
| static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 2)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3628,6 +3663,7 @@ static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct |
| static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "compareHowMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->compareHowMethod()); |
| } |
| @@ -3641,6 +3677,7 @@ static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
| static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "anyMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->anyMethod().v8Value()); |
| } |
| @@ -3654,6 +3691,7 @@ static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i |
| static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodMediaQueryListListenerArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryListListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3672,6 +3710,7 @@ static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function |
| static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodCompareHowArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3690,6 +3729,7 @@ static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo |
| static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodAnyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3708,6 +3748,7 @@ static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
| static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodAttrArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3726,6 +3767,7 @@ static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDocumentArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3744,6 +3786,7 @@ static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v |
| static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDocumentTypeArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTypeArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3762,6 +3805,7 @@ static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn |
| static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodElementArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3780,6 +3824,7 @@ static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 |
| static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodNodeArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3798,6 +3843,7 @@ static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "arrayBufferMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->arrayBufferMethod()); |
| } |
| @@ -3811,6 +3857,7 @@ static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "arrayBufferViewMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->arrayBufferViewMethod()); |
| } |
| @@ -3824,6 +3871,7 @@ static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v |
| static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "float32ArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->float32ArrayMethod()); |
| } |
| @@ -3837,6 +3885,7 @@ static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: |
| static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "int32ArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->int32ArrayMethod()); |
| } |
| @@ -3850,6 +3899,7 @@ static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
| static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "uint8ArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->uint8ArrayMethod()); |
| } |
| @@ -3863,6 +3913,7 @@ static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
| static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayBufferArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBufferArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3881,6 +3932,7 @@ static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf |
| static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayBufferViewArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBufferViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3899,6 +3951,7 @@ static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac |
| static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodFloat32ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32ArrayArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3917,6 +3970,7 @@ static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn |
| static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodInt32ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3935,6 +3989,7 @@ static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo |
| static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUint8ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -3953,6 +4008,7 @@ static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo |
| static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "longArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, v8Array(imp->longArrayMethod(), info.GetIsolate())); |
| } |
| @@ -3966,6 +4022,7 @@ static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val |
| static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, v8Array(imp->stringArrayMethod(), info.GetIsolate())); |
| } |
| @@ -3979,6 +4036,7 @@ static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfaceEmptyArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayMethod(), info.GetIsolate())); |
| } |
| @@ -3992,6 +4050,7 @@ static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba |
| static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4010,6 +4069,7 @@ static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< |
| static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4028,6 +4088,7 @@ static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf |
| static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4046,6 +4107,7 @@ static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio |
| static void sequenceLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, v8Array(imp->sequenceLongMethod(), info.GetIsolate())); |
| } |
| @@ -4059,6 +4121,7 @@ static void sequenceLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: |
| static void sequenceStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceStringMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, v8Array(imp->sequenceStringMethod(), info.GetIsolate())); |
| } |
| @@ -4072,6 +4135,7 @@ static void sequenceStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8 |
| static void sequenceTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceTestInterfaceEmptyMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, v8Array(imp->sequenceTestInterfaceEmptyMethod(), info.GetIsolate())); |
| } |
| @@ -4085,6 +4149,7 @@ static void sequenceTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCal |
| static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4103,6 +4168,7 @@ static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn |
| static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4121,6 +4187,7 @@ static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback |
| static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4139,6 +4206,7 @@ static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func |
| static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodNullableStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4157,6 +4225,7 @@ static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback |
| static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "testEnumMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueString(info, imp->testEnumMethod(), info.GetIsolate()); |
| } |
| @@ -4170,6 +4239,7 @@ static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu |
| static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestEnumArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4193,6 +4263,7 @@ static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v |
| static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "dictionaryMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->dictionaryMethod()); |
| } |
| @@ -4206,6 +4277,7 @@ static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
| static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeFilterMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->nodeFilterMethod()); |
| } |
| @@ -4219,6 +4291,7 @@ static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
| static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->promiseMethod().v8Value()); |
| } |
| @@ -4232,6 +4305,7 @@ static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value |
| static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "serializedScriptValueMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->serializedScriptValueMethod() ? imp->serializedScriptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIsolate()))); |
| } |
| @@ -4245,6 +4319,7 @@ static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback |
| static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "xPathNSResolverMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValue(info, imp->xPathNSResolverMethod()); |
| } |
| @@ -4258,6 +4333,7 @@ static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v |
| static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4280,6 +4356,7 @@ static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo |
| static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodNodeFilterArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4298,6 +4375,7 @@ static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo |
| static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodPromiseArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4320,6 +4398,7 @@ static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 |
| static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSerializedScriptValueArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSerializedScriptValueArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4341,6 +4420,7 @@ static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC |
| static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodXPathNSResolverArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSResolverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4359,6 +4439,7 @@ static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac |
| static void voidMethodSequenceDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceDictionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4377,6 +4458,7 @@ static void voidMethodSequenceDictionaryArgMethodCallback(const v8::FunctionCall |
| static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodStringArgLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 2)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4396,6 +4478,7 @@ static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI |
| static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| if (UNLIKELY(info.Length() <= 0)) { |
| imp->voidMethodOptionalStringArg(); |
| @@ -4414,6 +4497,7 @@ static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback |
| static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| if (UNLIKELY(info.Length() <= 0)) { |
| imp->voidMethodOptionalTestInterfaceEmptyArg(); |
| @@ -4432,6 +4516,7 @@ static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func |
| static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| if (UNLIKELY(info.Length() <= 0)) { |
| imp->voidMethodOptionalLongArg(); |
| @@ -4450,6 +4535,7 @@ static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn |
| static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| if (UNLIKELY(info.Length() <= 0)) { |
| v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(), info.GetIsolate()); |
| @@ -4468,6 +4554,7 @@ static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback |
| static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfaceEmptyMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| if (UNLIKELY(info.Length() <= 0)) { |
| v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg()); |
| @@ -4486,6 +4573,7 @@ static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func |
| static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| if (UNLIKELY(info.Length() <= 0)) { |
| v8SetReturnValueInt(info, imp->longMethodOptionalLongArg()); |
| @@ -4504,6 +4592,7 @@ static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn |
| static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4527,6 +4616,7 @@ static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal |
| static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgOptionalLongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOptionalLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4555,6 +4645,7 @@ static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const |
| static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgOptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOptionalTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4578,6 +4669,7 @@ static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v |
| static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceEmptyArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfaceEmptyArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4601,6 +4693,7 @@ static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v |
| static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.GetIsolate())); |
| if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isObject()) { |
| @@ -4619,6 +4712,7 @@ static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall |
| static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodVariadicStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>(info, 0)); |
| imp->voidMethodVariadicStringArg(variadicStringArgs); |
| @@ -4633,6 +4727,7 @@ static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback |
| static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodStringArgVariadicStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVariadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4652,6 +4747,7 @@ static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio |
| static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodVariadicTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
| for (int i = 0; i < info.Length(); ++i) { |
| @@ -4673,6 +4769,7 @@ static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func |
| static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4699,6 +4796,7 @@ static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa |
| static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4710,6 +4808,7 @@ static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& |
| static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 2)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4746,6 +4845,7 @@ static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4757,6 +4857,7 @@ static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& |
| static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4797,6 +4898,7 @@ static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4808,6 +4910,7 @@ static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& |
| static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4844,6 +4947,7 @@ static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4855,6 +4959,7 @@ static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& |
| static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4890,6 +4995,7 @@ static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4901,6 +5007,7 @@ static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& |
| static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4936,6 +5043,7 @@ static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4947,6 +5055,7 @@ static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& |
| static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -4982,12 +5091,14 @@ static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodG", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->overloadedMethodG(); |
| } |
| static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodG", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5019,18 +5130,21 @@ static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V |
| static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->overloadedPerWorldBindingsMethod(); |
| } |
| static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->overloadedPerWorldBindingsMethod(); |
| } |
| static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBindingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5062,6 +5176,7 @@ static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal |
| static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBindingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5093,6 +5208,7 @@ static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8: |
| static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5103,6 +5219,7 @@ static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val |
| static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 2)) { |
| throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5138,9 +5255,9 @@ static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo< |
| static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "addEventListener", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| if (DOMWindow* window = impl->toDOMWindow()) { |
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
| if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptionState)) { |
| exceptionState.throwIfNeeded(); |
| return; |
| @@ -5166,9 +5283,9 @@ static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
| static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "removeEventListener", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| if (DOMWindow* window = impl->toDOMWindow()) { |
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
| if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptionState)) { |
| exceptionState.throwIfNeeded(); |
| return; |
| @@ -5194,6 +5311,7 @@ static void removeEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8: |
| static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodClampUnsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsignedShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5215,6 +5333,7 @@ static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall |
| static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodClampUnsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsignedLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5236,6 +5355,7 @@ static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb |
| static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultUndefinedTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInterfaceEmptyArg); |
| @@ -5250,6 +5370,7 @@ static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const |
| static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultUndefinedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| V8TRYCATCH_VOID(int, defaultUndefinedLongArg, toInt32(info[0])); |
| imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
| @@ -5264,6 +5385,7 @@ static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa |
| static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultUndefinedStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStringArg, info[0]); |
| imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
| @@ -5278,6 +5400,7 @@ static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function |
| static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringStringArg, argumentOrNull(info, 0)); |
| imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); |
| @@ -5292,6 +5415,7 @@ static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio |
| static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodEnforceRangeLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodEnforceRangeLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5310,6 +5434,7 @@ static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba |
| static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTreatNullAsNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAsNullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5328,6 +5453,7 @@ static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun |
| static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5346,6 +5472,7 @@ static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe |
| static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingAccessForAllWorldsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->activityLoggingAccessForAllWorldsMethod(); |
| } |
| @@ -5364,6 +5491,7 @@ static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func |
| static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| ScriptState* currentState = ScriptState::current(); |
| if (!currentState) |
| @@ -5387,6 +5515,7 @@ static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba |
| static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| ScriptState* currentState = ScriptState::current(); |
| if (!currentState) |
| @@ -5411,6 +5540,7 @@ static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba |
| static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExecutionContextVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| ExecutionContext* scriptContext = getExecutionContext(); |
| imp->callWithExecutionContextVoidMethod(scriptContext); |
| @@ -5425,6 +5555,7 @@ static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC |
| static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateExecutionContextVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| ScriptState* currentState = ScriptState::current(); |
| if (!currentState) |
| @@ -5449,6 +5580,7 @@ static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8 |
| static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateScriptArgumentsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| ScriptState* currentState = ScriptState::current(); |
| if (!currentState) |
| @@ -5473,6 +5605,7 @@ static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: |
| static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| if (UNLIKELY(info.Length() <= 0)) { |
| ScriptState* currentState = ScriptState::current(); |
| @@ -5513,6 +5646,7 @@ static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod |
| static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithActiveWindow", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->callWithActiveWindow(activeDOMWindow()); |
| } |
| @@ -5526,6 +5660,7 @@ static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8 |
| static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithActiveWindowScriptWindow", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->callWithActiveWindowScriptWindow(activeDOMWindow(), firstDOMWindow()); |
| } |
| @@ -5539,6 +5674,7 @@ static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal |
| static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "checkSecurityForNodeVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeVoidMethod(exceptionState), exceptionState)) { |
| v8SetReturnValueNull(info); |
| @@ -5558,6 +5694,7 @@ static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb |
| #if ENABLE(CONDITION) |
| static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditionalConditionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->conditionalConditionVoidMethod(); |
| } |
| @@ -5575,6 +5712,7 @@ static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb |
| #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditionalCondition1AndCondition2VoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->conditionalCondition1AndCondition2VoidMethod(); |
| } |
| @@ -5592,6 +5730,7 @@ static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8: |
| #if ENABLE(CONDITION) |
| static void conditionalConditionStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditionalConditionStaticVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython::conditionalConditionStaticVoidMethod(); |
| } |
| #endif // ENABLE(CONDITION) |
| @@ -5623,6 +5762,7 @@ static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio |
| static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "customElementCallbacksVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| imp->customElementCallbacksVoidMethod(); |
| @@ -5637,6 +5777,7 @@ static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal |
| static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecatedVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->deprecatedVoidMethod(); |
| } |
| @@ -5651,6 +5792,7 @@ static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 |
| static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "doNotCheckSignatureVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->doNotCheckSignatureVoidMethod(); |
| } |
| @@ -5664,6 +5806,7 @@ static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba |
| static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementedAsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->implementedAsMethodName(); |
| } |
| @@ -5677,6 +5820,7 @@ static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo |
| static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->measureAsVoidMethod(); |
| } |
| @@ -5691,6 +5835,7 @@ static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: |
| static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "notEnumerableVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->notEnumerableVoidMethod(); |
| } |
| @@ -5704,6 +5849,7 @@ static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo |
| static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perContextEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->perContextEnabledVoidMethod(); |
| } |
| @@ -5717,6 +5863,7 @@ static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback |
| static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->perWorldBindingsVoidMethod(); |
| } |
| @@ -5730,6 +5877,7 @@ static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI |
| static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->perWorldBindingsVoidMethod(); |
| } |
| @@ -5743,6 +5891,7 @@ static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct |
| static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| } |
| @@ -5761,6 +5910,7 @@ static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( |
| static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| } |
| @@ -5779,6 +5929,7 @@ static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF |
| static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| } |
| @@ -5797,6 +5948,7 @@ static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall |
| static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| } |
| @@ -5810,6 +5962,7 @@ static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall |
| static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5828,6 +5981,7 @@ static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const |
| static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5846,8 +6000,8 @@ static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain |
| static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
| imp->raisesExceptionVoidMethod(exceptionState); |
| if (exceptionState.throwIfNeeded()) |
| return; |
| @@ -5862,8 +6016,8 @@ static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn |
| static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionVoidMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() <= 0)) { |
| imp->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
| if (exceptionState.throwIfNeeded()) |
| @@ -5885,6 +6039,7 @@ static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun |
| static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "readOnlyVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->readOnlyVoidMethod(); |
| } |
| @@ -5898,6 +6053,7 @@ static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: |
| static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "notEnumerableReadOnlyVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->notEnumerableReadOnlyVoidMethod(); |
| } |
| @@ -5911,6 +6067,7 @@ static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall |
| static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->runtimeEnabledVoidMethod(); |
| } |
| @@ -5924,6 +6081,7 @@ static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf |
| static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsRuntimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->perWorldBindingsRuntimeEnabledVoidMethod(); |
| } |
| @@ -5937,6 +6095,7 @@ static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun |
| static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsRuntimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->perWorldBindingsRuntimeEnabledVoidMethod(); |
| } |
| @@ -5950,6 +6109,7 @@ static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c |
| static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "strictTypeCheckingVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| if (UNLIKELY(info.Length() < 1)) { |
| throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoidMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| return; |
| @@ -5972,6 +6132,7 @@ static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons |
| static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "treatReturnedNullStringAsNullStringMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringMethod(), info.GetIsolate()); |
| } |
| @@ -5985,6 +6146,7 @@ static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu |
| static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "treatReturnedNullStringAsUndefinedStringMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefinedStringMethod(), info.GetIsolate()); |
| } |
| @@ -5998,6 +6160,7 @@ static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v |
| static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| { |
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "unforgeableVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| imp->unforgeableVoidMethod(); |
| } |