Index: Source/bindings/tests/results/V8TestObject.cpp |
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp |
index 04a322705963d0131cebd05c2467f5b71fd8c6d7..797f8325d33b427d5cb8b2b6d137a637a8a1e480 100644 |
--- a/Source/bindings/tests/results/V8TestObject.cpp |
+++ b/Source/bindings/tests/results/V8TestObject.cpp |
@@ -179,6 +179,7 @@ static void staticStringAttrAttributeGetterCallback(v8::Local<v8::String>, const |
static void staticStringAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "staticStringAttr", "TestObject", info.Holder(), info.GetIsolate()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
TestObj::setStaticStringAttr(cppValue); |
} |
@@ -205,6 +206,7 @@ static void enumAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro |
static void enumAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enumAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
String string = cppValue; |
@@ -248,6 +250,7 @@ static void byteAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro |
static void byteAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt8(jsValue)); |
imp->setByteAttr(cppValue); |
@@ -275,6 +278,7 @@ static void octetAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pr |
static void octetAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(unsigned, cppValue, toUInt8(jsValue)); |
imp->setOctetAttr(cppValue); |
@@ -302,6 +306,7 @@ static void shortAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pr |
static void shortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt16(jsValue)); |
imp->setShortAttr(cppValue); |
@@ -329,6 +334,7 @@ static void unsignedShortAttrAttributeGetterCallback(v8::Local<v8::String>, cons |
static void unsignedShortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(unsigned, cppValue, toUInt16(jsValue)); |
imp->setUnsignedShortAttr(cppValue); |
@@ -356,6 +362,7 @@ static void longAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro |
static void longAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "longAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setLongAttr(cppValue); |
@@ -383,6 +390,7 @@ static void longLongAttrAttributeGetterCallback(v8::Local<v8::String>, const v8: |
static void longLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(long long, cppValue, toInt64(jsValue)); |
imp->setLongLongAttr(cppValue); |
@@ -410,6 +418,7 @@ static void unsignedLongLongAttrAttributeGetterCallback(v8::Local<v8::String>, c |
static void unsignedLongLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLongAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(unsigned long long, cppValue, toUInt64(jsValue)); |
imp->setUnsignedLongLongAttr(cppValue); |
@@ -437,6 +446,7 @@ static void stringAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::P |
static void stringAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
imp->setStringAttr(cppValue); |
@@ -465,6 +475,7 @@ static void eventHandlerAttrAttributeGetterCallback(v8::Local<v8::String>, const |
static void eventHandlerAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "eventHandlerAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
transferHiddenDependency(info.Holder(), imp->eventHandlerAttr(isolatedWorldForIsolate(info.GetIsolate())), jsValue, V8TestObject::eventListenerCacheIndex, info.GetIsolate()); |
imp->setEventHandlerAttr(V8EventListenerList::getEventListener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); |
@@ -493,6 +504,7 @@ static void testObjAttrAttributeGetterCallback(v8::Local<v8::String>, const v8:: |
static void testObjAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "testObjAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
imp->setTestObjAttr(WTF::getPtr(cppValue)); |
@@ -521,6 +533,7 @@ static void attrWithJSGetterAndSetterAttributeGetterCallback(const v8::FunctionC |
static void attrWithJSGetterAndSetterAttributeSetter(v8::Local<v8::Value> jsValue, const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "attrWithJSGetterAndSetter", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
imp->setAttrWithJSGetterAndSetter(cppValue); |
@@ -549,6 +562,7 @@ static void XMLObjAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::P |
static void XMLObjAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "XMLObjAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
imp->setXMLObjAttr(WTF::getPtr(cppValue)); |
@@ -576,6 +590,7 @@ static void createAttributeGetterCallback(v8::Local<v8::String>, const v8::Prope |
static void createAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "create", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); |
imp->setCreate(cppValue); |
@@ -603,6 +618,7 @@ static void reflectedStringAttrAttributeGetterCallback(v8::Local<v8::String>, co |
static void reflectedStringAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedStringAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppValue, jsValue); |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
@@ -632,6 +648,7 @@ static void reflectedIntegralAttrAttributeGetterCallback(v8::Local<v8::String>, |
static void reflectedIntegralAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedIntegralAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
@@ -661,6 +678,7 @@ static void reflectedUnsignedIntegralAttrAttributeGetterCallback(v8::Local<v8::S |
static void reflectedUnsignedIntegralAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedUnsignedIntegralAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(unsigned, cppValue, toUInt32(jsValue)); |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
@@ -690,6 +708,7 @@ static void reflectedBooleanAttrAttributeGetterCallback(v8::Local<v8::String>, c |
static void reflectedBooleanAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedBooleanAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
@@ -719,6 +738,7 @@ static void reflectedURLAttrAttributeGetterCallback(v8::Local<v8::String>, const |
static void reflectedURLAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedURLAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppValue, jsValue); |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
@@ -748,6 +768,7 @@ static void reflectedStringAttrAttributeGetterCallback(v8::Local<v8::String>, co |
static void reflectedStringAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedStringAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppValue, jsValue); |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
@@ -777,6 +798,7 @@ static void reflectedCustomIntegralAttrAttributeGetterCallback(v8::Local<v8::Str |
static void reflectedCustomIntegralAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedCustomIntegralAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
@@ -806,6 +828,7 @@ static void reflectedCustomBooleanAttrAttributeGetterCallback(v8::Local<v8::Stri |
static void reflectedCustomBooleanAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedCustomBooleanAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
@@ -835,6 +858,7 @@ static void reflectedCustomURLAttrAttributeGetterCallback(v8::Local<v8::String>, |
static void reflectedCustomURLAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedCustomURLAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppValue, jsValue); |
CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
@@ -864,6 +888,7 @@ static void typedArrayAttrAttributeGetterCallback(v8::Local<v8::String>, const v |
static void typedArrayAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "typedArrayAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0); |
imp->setTypedArrayAttr(WTF::getPtr(cppValue)); |
@@ -879,7 +904,7 @@ static void typedArrayAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Loc |
static void attrWithGetterExceptionAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
+ ExceptionState exceptionState(ExceptionState::GetterContext, "attrWithGetterException", "TestObject" ,info.Holder(), info.GetIsolate()); |
int jsValue = imp->attrWithGetterException(exceptionState); |
if (UNLIKELY(exceptionState.throwIfNeeded())) |
return; |
@@ -895,6 +920,7 @@ static void attrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::String> |
static void attrWithGetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "attrWithGetterException", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setAttrWithGetterException(cppValue); |
@@ -922,9 +948,9 @@ static void attrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::String> |
static void attrWithSetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "attrWithSetterException", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
imp->setAttrWithSetterException(cppValue, exceptionState); |
exceptionState.throwIfNeeded(); |
} |
@@ -939,7 +965,7 @@ static void attrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::String> |
static void stringAttrWithGetterExceptionAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
+ ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttrWithGetterException", "TestObject" ,info.Holder(), info.GetIsolate()); |
String jsValue = imp->stringAttrWithGetterException(exceptionState); |
if (UNLIKELY(exceptionState.throwIfNeeded())) |
return; |
@@ -955,6 +981,7 @@ static void stringAttrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::S |
static void stringAttrWithGetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttrWithGetterException", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
imp->setStringAttrWithGetterException(cppValue); |
@@ -982,9 +1009,9 @@ static void stringAttrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::S |
static void stringAttrWithSetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttrWithSetterException", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
imp->setStringAttrWithSetterException(cppValue, exceptionState); |
exceptionState.throwIfNeeded(); |
} |
@@ -1029,6 +1056,7 @@ static void withScriptStateAttributeAttributeGetterCallback(v8::Local<v8::String |
static void withScriptStateAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "withScriptStateAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
ScriptState* currentState = ScriptState::current(); |
@@ -1063,6 +1091,7 @@ static void withExecutionContextAttributeAttributeGetterCallback(v8::Local<v8::S |
static void withExecutionContextAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "withExecutionContextAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
ExecutionContext* scriptContext = getExecutionContext(); |
@@ -1091,6 +1120,7 @@ static void withActiveWindowAndFirstWindowAttributeAttributeGetterCallback(v8::L |
static void withActiveWindowAndFirstWindowAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "withActiveWindowAndFirstWindowAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
imp->setWithActiveWindowAndFirstWindowAttribute(activeDOMWindow(), firstDOMWindow(), WTF::getPtr(cppValue)); |
@@ -1106,7 +1136,7 @@ static void withActiveWindowAndFirstWindowAttributeAttributeSetterCallback(v8::L |
static void withScriptStateAttributeRaisesAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
+ ExceptionState exceptionState(ExceptionState::GetterContext, "withScriptStateAttributeRaises", "TestObject" ,info.Holder(), info.GetIsolate()); |
ScriptState* currentState = ScriptState::current(); |
if (!currentState) |
return v8Undefined(); |
@@ -1130,6 +1160,7 @@ static void withScriptStateAttributeRaisesAttributeGetterCallback(v8::Local<v8:: |
static void withScriptStateAttributeRaisesAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "withScriptStateAttributeRaises", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
ScriptState* currentState = ScriptState::current(); |
@@ -1151,7 +1182,7 @@ static void withScriptStateAttributeRaisesAttributeSetterCallback(v8::Local<v8:: |
static void withExecutionContextAttributeRaisesAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
+ ExceptionState exceptionState(ExceptionState::GetterContext, "withExecutionContextAttributeRaises", "TestObject" ,info.Holder(), info.GetIsolate()); |
ExecutionContext* scriptContext = getExecutionContext(); |
RefPtr<TestObj> jsValue = imp->withExecutionContextAttributeRaises(scriptContext, exceptionState); |
if (UNLIKELY(exceptionState.throwIfNeeded())) |
@@ -1168,6 +1199,7 @@ static void withExecutionContextAttributeRaisesAttributeGetterCallback(v8::Local |
static void withExecutionContextAttributeRaisesAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "withExecutionContextAttributeRaises", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
ExecutionContext* scriptContext = getExecutionContext(); |
@@ -1201,6 +1233,7 @@ static void withExecutionContextAndScriptStateAttributeAttributeGetterCallback(v |
static void withExecutionContextAndScriptStateAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "withExecutionContextAndScriptStateAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
ScriptState* currentState = ScriptState::current(); |
@@ -1223,7 +1256,7 @@ static void withExecutionContextAndScriptStateAttributeAttributeSetterCallback(v |
static void withExecutionContextAndScriptStateAttributeRaisesAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
+ ExceptionState exceptionState(ExceptionState::GetterContext, "withExecutionContextAndScriptStateAttributeRaises", "TestObject" ,info.Holder(), info.GetIsolate()); |
ScriptState* currentState = ScriptState::current(); |
if (!currentState) |
return v8Undefined(); |
@@ -1248,6 +1281,7 @@ static void withExecutionContextAndScriptStateAttributeRaisesAttributeGetterCall |
static void withExecutionContextAndScriptStateAttributeRaisesAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "withExecutionContextAndScriptStateAttributeRaises", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
ScriptState* currentState = ScriptState::current(); |
@@ -1287,6 +1321,7 @@ static void withExecutionContextAndScriptStateWithSpacesAttributeAttributeGetter |
static void withExecutionContextAndScriptStateWithSpacesAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "withExecutionContextAndScriptStateWithSpacesAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
ScriptState* currentState = ScriptState::current(); |
@@ -1321,6 +1356,7 @@ static void enforcedRangeByteAttrAttributeGetterCallback(v8::Local<v8::String>, |
static void enforcedRangeByteAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeByteAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_WITH_TYPECHECK_VOID(int, cppValue, toInt8(jsValue, EnforceRange, ok), info.GetIsolate()); |
imp->setEnforcedRangeByteAttr(cppValue); |
@@ -1348,6 +1384,7 @@ static void enforcedRangeOctetAttrAttributeGetterCallback(v8::Local<v8::String>, |
static void enforcedRangeOctetAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeOctetAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_WITH_TYPECHECK_VOID(unsigned, cppValue, toUInt8(jsValue, EnforceRange, ok), info.GetIsolate()); |
imp->setEnforcedRangeOctetAttr(cppValue); |
@@ -1375,6 +1412,7 @@ static void enforcedRangeShortAttrAttributeGetterCallback(v8::Local<v8::String>, |
static void enforcedRangeShortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeShortAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_WITH_TYPECHECK_VOID(int, cppValue, toInt16(jsValue, EnforceRange, ok), info.GetIsolate()); |
imp->setEnforcedRangeShortAttr(cppValue); |
@@ -1402,6 +1440,7 @@ static void enforcedRangeUnsignedShortAttrAttributeGetterCallback(v8::Local<v8:: |
static void enforcedRangeUnsignedShortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeUnsignedShortAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_WITH_TYPECHECK_VOID(unsigned, cppValue, toUInt16(jsValue, EnforceRange, ok), info.GetIsolate()); |
imp->setEnforcedRangeUnsignedShortAttr(cppValue); |
@@ -1429,6 +1468,7 @@ static void enforcedRangeLongAttrAttributeGetterCallback(v8::Local<v8::String>, |
static void enforcedRangeLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeLongAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_WITH_TYPECHECK_VOID(int, cppValue, toInt32(jsValue, EnforceRange, ok), info.GetIsolate()); |
imp->setEnforcedRangeLongAttr(cppValue); |
@@ -1456,6 +1496,7 @@ static void enforcedRangeUnsignedLongAttrAttributeGetterCallback(v8::Local<v8::S |
static void enforcedRangeUnsignedLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeUnsignedLongAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_WITH_TYPECHECK_VOID(unsigned, cppValue, toUInt32(jsValue, EnforceRange, ok), info.GetIsolate()); |
imp->setEnforcedRangeUnsignedLongAttr(cppValue); |
@@ -1483,6 +1524,7 @@ static void enforcedRangeLongLongAttrAttributeGetterCallback(v8::Local<v8::Strin |
static void enforcedRangeLongLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeLongLongAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_WITH_TYPECHECK_VOID(long long, cppValue, toInt64(jsValue, EnforceRange, ok), info.GetIsolate()); |
imp->setEnforcedRangeLongLongAttr(cppValue); |
@@ -1510,6 +1552,7 @@ static void enforcedRangeUnsignedLongLongAttrAttributeGetterCallback(v8::Local<v |
static void enforcedRangeUnsignedLongLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeUnsignedLongLongAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_WITH_TYPECHECK_VOID(unsigned long long, cppValue, toUInt64(jsValue, EnforceRange, ok), info.GetIsolate()); |
imp->setEnforcedRangeUnsignedLongLongAttr(cppValue); |
@@ -1542,6 +1585,7 @@ static void conditionalAttr1AttributeGetterCallback(v8::Local<v8::String>, const |
#if ENABLE(Condition1) |
static void conditionalAttr1AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAttr1", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setConditionalAttr1(cppValue); |
@@ -1577,6 +1621,7 @@ static void conditionalAttr2AttributeGetterCallback(v8::Local<v8::String>, const |
#if ENABLE(Condition1) && ENABLE(Condition2) |
static void conditionalAttr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAttr2", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setConditionalAttr2(cppValue); |
@@ -1612,6 +1657,7 @@ static void conditionalAttr3AttributeGetterCallback(v8::Local<v8::String>, const |
#if ENABLE(Condition1) || ENABLE(Condition2) |
static void conditionalAttr3AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAttr3", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setConditionalAttr3(cppValue); |
@@ -1687,7 +1733,7 @@ static void cachedDirtyableAttributeRaisesAttributeGetter(const v8::PropertyCall |
return; |
} |
} |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
+ ExceptionState exceptionState(ExceptionState::GetterContext, "cachedDirtyableAttributeRaises", "TestObject" ,info.Holder(), info.GetIsolate()); |
ScriptValue jsValue = imp->cachedDirtyableAttributeRaises(exceptionState); |
if (UNLIKELY(exceptionState.throwIfNeeded())) |
return; |
@@ -1717,6 +1763,7 @@ static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: |
static void anyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "anyAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate())); |
imp->setAnyAttribute(cppValue); |
@@ -1744,6 +1791,7 @@ static void callbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::Strin |
static void callbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "callbackFunctionAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate())); |
imp->setCallbackFunctionAttribute(cppValue); |
@@ -1771,6 +1819,7 @@ static void enabledAtRuntimeAttrAttributeGetterCallback(v8::Local<v8::String>, c |
static void enabledAtRuntimeAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enabledAtRuntimeAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setEnabledAtRuntimeAttr(cppValue); |
@@ -1798,6 +1847,7 @@ static void enabledPerContextAttrAttributeGetterCallback(v8::Local<v8::String>, |
static void enabledPerContextAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "enabledPerContextAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setEnabledPerContextAttr(cppValue); |
@@ -1825,6 +1875,7 @@ static void floatArrayAttributeGetterCallback(v8::Local<v8::String>, const v8::P |
static void floatArrayAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "floatArray", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, info.GetIsolate())); |
imp->setFloatArray(cppValue); |
@@ -1852,6 +1903,7 @@ static void doubleArrayAttributeGetterCallback(v8::Local<v8::String>, const v8:: |
static void doubleArrayAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "doubleArray", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(Vector<double>, cppValue, toNativeArray<double>(jsValue, 0, info.GetIsolate())); |
imp->setDoubleArray(cppValue); |
@@ -1879,6 +1931,7 @@ static void messagePortArrayAttributeGetterCallback(v8::Local<v8::String>, const |
static void messagePortArrayAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "messagePortArray", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(Vector<RefPtr<MessagePort> >, cppValue, (toRefPtrNativeArray<MessagePort, V8MessagePort>(jsValue, 0, info.GetIsolate()))); |
imp->setMessagePortArray(cppValue); |
@@ -1894,7 +1947,7 @@ static void messagePortArrayAttributeSetterCallback(v8::Local<v8::String>, v8::L |
static void contentDocumentAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
+ ExceptionState exceptionState(ExceptionState::GetterContext, "contentDocument", "TestObject" ,info.Holder(), info.GetIsolate()); |
if (!BindingSecurity::shouldAllowAccessToNode(imp->contentDocument(), exceptionState)) { |
v8SetReturnValueNull(info); |
exceptionState.throwIfNeeded(); |
@@ -1925,10 +1978,12 @@ static void mutablePointAttributeGetterCallback(v8::Local<v8::String>, const v8: |
static void mutablePointAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "mutablePoint", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(RefPtr<SVGPropertyTearOff<SVGPoint> >, cppValue, V8SVGPoint::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8SVGPoint::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
if (!WTF::getPtr(cppValue)) { |
- throwTypeError(ExceptionMessages::failedToSet("mutablePoint", "TestObject", "The provided value is not of type 'SVGPoint'."), info.GetIsolate()); |
+ exceptionState.throwTypeError("The provided value is not of type 'SVGPoint'."); |
+ exceptionState.throwIfNeeded(); |
return; |
} |
imp->setMutablePoint(WTF::getPtr(cppValue)->propertyReference()); |
@@ -1956,10 +2011,12 @@ static void immutablePointAttributeGetterCallback(v8::Local<v8::String>, const v |
static void immutablePointAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "immutablePoint", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(RefPtr<SVGPropertyTearOff<SVGPoint> >, cppValue, V8SVGPoint::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8SVGPoint::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
if (!WTF::getPtr(cppValue)) { |
- throwTypeError(ExceptionMessages::failedToSet("immutablePoint", "TestObject", "The provided value is not of type 'SVGPoint'."), info.GetIsolate()); |
+ exceptionState.throwTypeError("The provided value is not of type 'SVGPoint'."); |
+ exceptionState.throwIfNeeded(); |
return; |
} |
imp->setImmutablePoint(WTF::getPtr(cppValue)->propertyReference()); |
@@ -1987,6 +2044,7 @@ static void strawberryAttributeGetterCallback(v8::Local<v8::String>, const v8::P |
static void strawberryAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "strawberry", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setBlueberry(cppValue); |
@@ -2014,6 +2072,7 @@ static void strictFloatAttributeGetterCallback(v8::Local<v8::String>, const v8:: |
static void strictFloatAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "strictFloat", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue())); |
imp->setStrictFloat(cppValue); |
@@ -2136,6 +2195,7 @@ static void nullableLongSettableAttributeAttributeGetterCallback(v8::Local<v8::S |
static void nullableLongSettableAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "nullableLongSettableAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setNullableLongSettableAttribute(cppValue); |
@@ -2151,7 +2211,7 @@ static void nullableLongSettableAttributeAttributeSetterCallback(v8::Local<v8::S |
static void nullableStringValueAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
+ ExceptionState exceptionState(ExceptionState::GetterContext, "nullableStringValue", "TestObject" ,info.Holder(), info.GetIsolate()); |
bool isNull = false; |
int jsValue = imp->nullableStringValue(isNull, exceptionState); |
if (isNull) { |
@@ -2172,6 +2232,7 @@ static void nullableStringValueAttributeGetterCallback(v8::Local<v8::String>, co |
static void nullableStringValueAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "nullableStringValue", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setNullableStringValue(cppValue); |
@@ -2239,6 +2300,7 @@ static void perWorldAttributeAttributeGetterCallback(v8::Local<v8::String>, cons |
static void perWorldAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
imp->setPerWorldAttribute(WTF::getPtr(cppValue)); |
@@ -2266,6 +2328,7 @@ static void perWorldAttributeAttributeGetterCallbackForMainWorld(v8::Local<v8::S |
static void perWorldAttributeAttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldAttribute", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(TestObj*, cppValue, V8TestObject::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
imp->setPerWorldAttribute(WTF::getPtr(cppValue)); |
@@ -2296,6 +2359,7 @@ static void activityLoggedAttr1AttributeGetterCallback(v8::Local<v8::String>, co |
static void activityLoggedAttr1AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedAttr1", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedAttr1(cppValue); |
@@ -2331,6 +2395,7 @@ static void activityLoggedAttr2AttributeGetterCallback(v8::Local<v8::String>, co |
static void activityLoggedAttr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedAttr2", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedAttr2(cppValue); |
@@ -2366,6 +2431,7 @@ static void activityLoggedAttr2AttributeGetterCallbackForMainWorld(v8::Local<v8: |
static void activityLoggedAttr2AttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedAttr2", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedAttr2(cppValue); |
@@ -2401,6 +2467,7 @@ static void activityLoggedInIsolatedWorldsAttrAttributeGetterCallback(v8::Local< |
static void activityLoggedInIsolatedWorldsAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedInIsolatedWorldsAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedInIsolatedWorldsAttr(cppValue); |
@@ -2433,6 +2500,7 @@ static void activityLoggedInIsolatedWorldsAttrAttributeGetterCallbackForMainWorl |
static void activityLoggedInIsolatedWorldsAttrAttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedInIsolatedWorldsAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedInIsolatedWorldsAttr(cppValue); |
@@ -2460,6 +2528,7 @@ static void activityLoggedAttrSetter1AttributeGetterCallback(v8::Local<v8::Strin |
static void activityLoggedAttrSetter1AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedAttrSetter1", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedAttrSetter1(cppValue); |
@@ -2492,6 +2561,7 @@ static void activityLoggedAttrSetter2AttributeGetterCallback(v8::Local<v8::Strin |
static void activityLoggedAttrSetter2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedAttrSetter2", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedAttrSetter2(cppValue); |
@@ -2524,6 +2594,7 @@ static void activityLoggedAttrSetter2AttributeGetterCallbackForMainWorld(v8::Loc |
static void activityLoggedAttrSetter2AttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedAttrSetter2", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedAttrSetter2(cppValue); |
@@ -2556,6 +2627,7 @@ static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallback(v8:: |
static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedInIsolatedWorldsAttrSetter", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedInIsolatedWorldsAttrSetter(cppValue); |
@@ -2588,6 +2660,7 @@ static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallbackForMa |
static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedInIsolatedWorldsAttrSetter", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedInIsolatedWorldsAttrSetter(cppValue); |
@@ -2618,6 +2691,7 @@ static void activityLoggedAttrGetter1AttributeGetterCallback(v8::Local<v8::Strin |
static void activityLoggedAttrGetter1AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedAttrGetter1", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedAttrGetter1(cppValue); |
@@ -2648,6 +2722,7 @@ static void activityLoggedAttrGetter2AttributeGetterCallback(v8::Local<v8::Strin |
static void activityLoggedAttrGetter2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedAttrGetter2", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedAttrGetter2(cppValue); |
@@ -2678,6 +2753,7 @@ static void activityLoggedAttrGetter2AttributeGetterCallbackForMainWorld(v8::Loc |
static void activityLoggedAttrGetter2AttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedAttrGetter2", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedAttrGetter2(cppValue); |
@@ -2708,6 +2784,7 @@ static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallback(v8:: |
static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedInIsolatedWorldsAttrGetter", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedInIsolatedWorldsAttrGetter(cppValue); |
@@ -2735,6 +2812,7 @@ static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallbackForMa |
static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggedInIsolatedWorldsAttrGetter", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setActivityLoggedInIsolatedWorldsAttrGetter(cppValue); |
@@ -2775,6 +2853,7 @@ static void deprecatedStaticAttrAttributeGetterCallback(v8::Local<v8::String>, c |
static void deprecatedStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedStaticAttr", "TestObject", info.Holder(), info.GetIsolate()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
TestObj::setDeprecatedStaticAttr(cppValue); |
} |
@@ -2817,6 +2896,7 @@ static void deprecatedAttrAttributeGetterCallback(v8::Local<v8::String>, const v |
static void deprecatedAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedAttr", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
imp->setDeprecatedAttr(cppValue); |
@@ -2845,6 +2925,7 @@ static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro |
static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "location", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* proxyImp = V8TestObject::toNative(info.Holder()); |
TestNode* imp = proxyImp->location(); |
if (!imp) |
@@ -2875,14 +2956,13 @@ static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>, |
static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithException", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* proxyImp = V8TestObject::toNative(info.Holder()); |
TestNode* imp = proxyImp->locationWithException(); |
if (!imp) |
return; |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
- imp->setHrefThrows(cppValue, exceptionState); |
- exceptionState.throwIfNeeded(); |
+ imp->setHrefThrows(cppValue); |
} |
static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
@@ -2914,6 +2994,7 @@ static void TestObjReplaceableAttributeSetterCallback(v8::Local<v8::String> name |
static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethod", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
imp->voidMethod(); |
} |
@@ -2927,6 +3008,7 @@ static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
static void voidMethodWithArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodWithArgs", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 3)) { |
throwTypeError(ExceptionMessages::failedToExecute("voidMethodWithArgs", "TestObject", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate()); |
return; |
@@ -2947,6 +3029,7 @@ static void voidMethodWithArgsMethodCallback(const v8::FunctionCallbackInfo<v8:: |
static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethod", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
v8SetReturnValueInt(info, imp->longMethod()); |
} |
@@ -2960,6 +3043,7 @@ static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
static void longMethodWithArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodWithArgs", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 3)) { |
throwTypeError(ExceptionMessages::failedToExecute("longMethodWithArgs", "TestObject", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate()); |
return; |
@@ -2980,6 +3064,7 @@ static void longMethodWithArgsMethodCallback(const v8::FunctionCallbackInfo<v8:: |
static void objMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "objMethod", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
v8SetReturnValue(info, imp->objMethod()); |
} |
@@ -2994,6 +3079,7 @@ static void objMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i |
static void objMethodWithArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "objMethodWithArgs", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 3)) { |
throwTypeError(ExceptionMessages::failedToExecute("objMethodWithArgs", "TestObject", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate()); |
return; |
@@ -3014,6 +3100,7 @@ static void objMethodWithArgsMethodCallback(const v8::FunctionCallbackInfo<v8::V |
static void methodWithSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithSequenceArg", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithSequenceArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3032,6 +3119,7 @@ static void methodWithSequenceArgMethodCallback(const v8::FunctionCallbackInfo<v |
static void methodReturningSequenceMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodReturningSequence", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodReturningSequence", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3050,6 +3138,7 @@ static void methodReturningSequenceMethodCallback(const v8::FunctionCallbackInfo |
static void methodWithEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnumArg", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnumArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3073,12 +3162,12 @@ static void methodWithEnumArgMethodCallback(const v8::FunctionCallbackInfo<v8::V |
static void methodThatRequiresAllArgsAndThrowsMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodThatRequiresAllArgsAndThrows", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodThatRequiresAllArgsAndThrows", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
} |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); |
V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); |
RefPtr<TestObj> result = imp->methodThatRequiresAllArgsAndThrows(strArg, objArg, exceptionState); |
@@ -3096,6 +3185,7 @@ static void methodThatRequiresAllArgsAndThrowsMethodCallback(const v8::FunctionC |
static void methodQueryListListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodQueryListListener", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodQueryListListener", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3114,6 +3204,7 @@ static void methodQueryListListenerMethodCallback(const v8::FunctionCallbackInfo |
static void serializedValueMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "serializedValue", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("serializedValue", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3135,6 +3226,7 @@ static void serializedValueMethodCallback(const v8::FunctionCallbackInfo<v8::Val |
static void optionsObjectMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "optionsObject", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("optionsObject", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3162,6 +3254,7 @@ static void optionsObjectMethodCallback(const v8::FunctionCallbackInfo<v8::Value |
static void optionsObjectListMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "optionsObjectList", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("optionsObjectList", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3180,8 +3273,8 @@ static void optionsObjectListMethodCallback(const v8::FunctionCallbackInfo<v8::V |
static void methodWithExceptionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithException", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
imp->methodWithException(exceptionState); |
if (exceptionState.throwIfNeeded()) |
return; |
@@ -3211,9 +3304,9 @@ static void customMethodWithArgsMethodCallback(const v8::FunctionCallbackInfo<v8 |
static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "addEventListener", "TestObject", info.Holder(), info.GetIsolate()); |
EventTarget* impl = V8TestObject::toNative(info.Holder()); |
if (DOMWindow* window = impl->toDOMWindow()) { |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptionState)) { |
exceptionState.throwIfNeeded(); |
return; |
@@ -3239,9 +3332,9 @@ static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "removeEventListener", "TestObject", info.Holder(), info.GetIsolate()); |
EventTarget* impl = V8TestObject::toNative(info.Holder()); |
if (DOMWindow* window = impl->toDOMWindow()) { |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptionState)) { |
exceptionState.throwIfNeeded(); |
return; |
@@ -3267,6 +3360,7 @@ static void removeEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8: |
static void withScriptStateVoidMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "withScriptStateVoid", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
ScriptState* currentState = ScriptState::current(); |
if (!currentState) |
@@ -3290,6 +3384,7 @@ static void withScriptStateVoidMethodCallback(const v8::FunctionCallbackInfo<v8: |
static void withScriptStateObjMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "withScriptStateObj", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
ScriptState* currentState = ScriptState::current(); |
if (!currentState) |
@@ -3314,8 +3409,8 @@ static void withScriptStateObjMethodCallback(const v8::FunctionCallbackInfo<v8:: |
static void withScriptStateVoidExceptionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "withScriptStateVoidException", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
ScriptState* currentState = ScriptState::current(); |
if (!currentState) |
return; |
@@ -3340,8 +3435,8 @@ static void withScriptStateVoidExceptionMethodCallback(const v8::FunctionCallbac |
static void withScriptStateObjExceptionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "withScriptStateObjException", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
ScriptState* currentState = ScriptState::current(); |
if (!currentState) |
return; |
@@ -3367,6 +3462,7 @@ static void withScriptStateObjExceptionMethodCallback(const v8::FunctionCallback |
static void withExecutionContextMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "withExecutionContext", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
ExecutionContext* scriptContext = getExecutionContext(); |
imp->withExecutionContext(scriptContext); |
@@ -3381,6 +3477,7 @@ static void withExecutionContextMethodCallback(const v8::FunctionCallbackInfo<v8 |
static void withExecutionContextAndScriptStateMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "withExecutionContextAndScriptState", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
ScriptState* currentState = ScriptState::current(); |
if (!currentState) |
@@ -3405,8 +3502,8 @@ static void withExecutionContextAndScriptStateMethodCallback(const v8::FunctionC |
static void withExecutionContextAndScriptStateObjExceptionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "withExecutionContextAndScriptStateObjException", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
ScriptState* currentState = ScriptState::current(); |
if (!currentState) |
return; |
@@ -3433,6 +3530,7 @@ static void withExecutionContextAndScriptStateObjExceptionMethodCallback(const v |
static void withExecutionContextAndScriptStateWithSpacesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "withExecutionContextAndScriptStateWithSpaces", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
ScriptState* currentState = ScriptState::current(); |
if (!currentState) |
@@ -3458,6 +3556,7 @@ static void withExecutionContextAndScriptStateWithSpacesMethodCallback(const v8: |
static void withActiveWindowAndFirstWindowMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "withActiveWindowAndFirstWindow", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
imp->withActiveWindowAndFirstWindow(activeDOMWindow(), firstDOMWindow()); |
} |
@@ -3471,6 +3570,7 @@ static void withActiveWindowAndFirstWindowMethodCallback(const v8::FunctionCallb |
static void methodWithOptionalArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithOptionalArg", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
if (UNLIKELY(info.Length() <= 0)) { |
imp->methodWithOptionalArg(); |
@@ -3489,6 +3589,7 @@ static void methodWithOptionalArgMethodCallback(const v8::FunctionCallbackInfo<v |
static void methodWithNonOptionalArgAndOptionalArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithNonOptionalArgAndOptionalArg", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithNonOptionalArgAndOptionalArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3512,6 +3613,7 @@ static void methodWithNonOptionalArgAndOptionalArgMethodCallback(const v8::Funct |
static void methodWithNonOptionalArgAndTwoOptionalArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithNonOptionalArgAndTwoOptionalArgs", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithNonOptionalArgAndTwoOptionalArgs", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3540,6 +3642,7 @@ static void methodWithNonOptionalArgAndTwoOptionalArgsMethodCallback(const v8::F |
static void methodWithOptionalStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithOptionalString", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
if (UNLIKELY(info.Length() <= 0)) { |
imp->methodWithOptionalString(); |
@@ -3558,6 +3661,7 @@ static void methodWithOptionalStringMethodCallback(const v8::FunctionCallbackInf |
static void methodWithOptionalStringIsUndefinedMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithOptionalStringIsUndefined", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, info[0]); |
imp->methodWithOptionalStringIsUndefined(str); |
@@ -3572,6 +3676,7 @@ static void methodWithOptionalStringIsUndefinedMethodCallback(const v8::Function |
static void methodWithOptionalStringIsNullStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithOptionalStringIsNullString", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, argumentOrNull(info, 0)); |
imp->methodWithOptionalStringIsNullString(str); |
@@ -3586,6 +3691,7 @@ static void methodWithOptionalStringIsNullStringMethodCallback(const v8::Functio |
static void methodWithCallbackArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithCallbackArg", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithCallbackArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3608,6 +3714,7 @@ static void methodWithCallbackArgMethodCallback(const v8::FunctionCallbackInfo<v |
static void methodWithNonCallbackArgAndCallbackArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithNonCallbackArgAndCallbackArg", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithNonCallbackArgAndCallbackArg", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
@@ -3631,6 +3738,7 @@ static void methodWithNonCallbackArgAndCallbackArgMethodCallback(const v8::Funct |
static void methodWithCallbackAndOptionalArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithCallbackAndOptionalArg", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
OwnPtr<TestCallback> callback; |
if (info.Length() > 0 && !info[0]->IsNull() && !info[0]->IsUndefined()) { |
@@ -3652,6 +3760,7 @@ static void methodWithCallbackAndOptionalArgMethodCallback(const v8::FunctionCal |
static void methodWithNullableCallbackArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithNullableCallbackArg", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithNullableCallbackArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3674,6 +3783,7 @@ static void methodWithNullableCallbackArgMethodCallback(const v8::FunctionCallba |
static void staticMethodWithCallbackAndOptionalArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticMethodWithCallbackAndOptionalArg", "TestObject", info.Holder(), info.GetIsolate()); |
OwnPtr<TestCallback> callback; |
if (info.Length() > 0 && !info[0]->IsNull() && !info[0]->IsUndefined()) { |
if (!info[0]->IsFunction()) { |
@@ -3694,6 +3804,7 @@ static void staticMethodWithCallbackAndOptionalArgMethodCallback(const v8::Funct |
static void staticMethodWithCallbackArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticMethodWithCallbackArg", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("staticMethodWithCallbackArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3715,6 +3826,7 @@ static void staticMethodWithCallbackArgMethodCallback(const v8::FunctionCallback |
static void methodWithEnforceRangeInt8Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnforceRangeInt8", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeInt8", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3733,6 +3845,7 @@ static void methodWithEnforceRangeInt8MethodCallback(const v8::FunctionCallbackI |
static void methodWithEnforceRangeUInt8Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnforceRangeUInt8", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeUInt8", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3751,6 +3864,7 @@ static void methodWithEnforceRangeUInt8MethodCallback(const v8::FunctionCallback |
static void methodWithEnforceRangeInt16Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnforceRangeInt16", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeInt16", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3769,6 +3883,7 @@ static void methodWithEnforceRangeInt16MethodCallback(const v8::FunctionCallback |
static void methodWithEnforceRangeUInt16Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnforceRangeUInt16", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeUInt16", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3787,6 +3902,7 @@ static void methodWithEnforceRangeUInt16MethodCallback(const v8::FunctionCallbac |
static void methodWithEnforceRangeInt32Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnforceRangeInt32", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeInt32", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3805,6 +3921,7 @@ static void methodWithEnforceRangeInt32MethodCallback(const v8::FunctionCallback |
static void methodWithEnforceRangeUInt32Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnforceRangeUInt32", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeUInt32", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3823,6 +3940,7 @@ static void methodWithEnforceRangeUInt32MethodCallback(const v8::FunctionCallbac |
static void methodWithEnforceRangeInt64Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnforceRangeInt64", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeInt64", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3841,6 +3959,7 @@ static void methodWithEnforceRangeInt64MethodCallback(const v8::FunctionCallback |
static void methodWithEnforceRangeUInt64Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithEnforceRangeUInt64", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeUInt64", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3860,6 +3979,7 @@ static void methodWithEnforceRangeUInt64MethodCallback(const v8::FunctionCallbac |
#if ENABLE(Condition1) |
static void conditionalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditionalMethod1", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
v8SetReturnValueString(info, imp->conditionalMethod1(), info.GetIsolate()); |
} |
@@ -3877,6 +3997,7 @@ static void conditionalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8:: |
#if ENABLE(Condition1) && ENABLE(Condition2) |
static void conditionalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditionalMethod2", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
imp->conditionalMethod2(); |
} |
@@ -3894,6 +4015,7 @@ static void conditionalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8:: |
#if ENABLE(Condition1) || ENABLE(Condition2) |
static void conditionalMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditionalMethod3", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
imp->conditionalMethod3(); |
} |
@@ -3910,6 +4032,7 @@ static void conditionalMethod3MethodCallback(const v8::FunctionCallbackInfo<v8:: |
static void callbackFunctionReturnValueMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "callbackFunctionReturnValue", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
v8SetReturnValue(info, imp->callbackFunctionReturnValue().v8Value()); |
} |
@@ -3923,6 +4046,7 @@ static void callbackFunctionReturnValueMethodCallback(const v8::FunctionCallback |
static void callbackFunctionArgumentMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "callbackFunctionArgument", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("callbackFunctionArgument", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3941,6 +4065,7 @@ static void callbackFunctionArgumentMethodCallback(const v8::FunctionCallbackInf |
static void overloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3952,6 +4077,7 @@ static void overloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& i |
static void overloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3967,6 +4093,7 @@ static void overloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& i |
static void overloadedMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3978,6 +4105,7 @@ static void overloadedMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& i |
static void overloadedMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -3989,6 +4117,7 @@ static void overloadedMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& i |
static void overloadedMethod5Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4036,6 +4165,7 @@ static void overloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodA", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4052,6 +4182,7 @@ static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& |
static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodA", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
@@ -4088,6 +4219,7 @@ static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V |
static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodB", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4099,6 +4231,7 @@ static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& |
static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodB", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4134,6 +4267,7 @@ static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V |
static void classMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "classMethod", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj::classMethod(); |
} |
@@ -4146,6 +4280,7 @@ static void classMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& |
static void classMethodWithOptionalMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "classMethodWithOptional", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() <= 0)) { |
v8SetReturnValueInt(info, TestObj::classMethodWithOptional()); |
return; |
@@ -4170,6 +4305,7 @@ static void classMethod2MethodCallback(const v8::FunctionCallbackInfo<v8::Value> |
static void classMethodWithClampMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "classMethodWithClamp", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("classMethodWithClamp", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
@@ -4195,6 +4331,7 @@ static void classMethodWithClampMethodCallback(const v8::FunctionCallbackInfo<v8 |
static void enabledAtRuntimeMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "enabledAtRuntimeMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("enabledAtRuntimeMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4213,6 +4350,7 @@ static void enabledAtRuntimeMethodMethodCallback(const v8::FunctionCallbackInfo< |
static void enabledPerContextMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "enabledPerContextMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("enabledPerContextMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4231,6 +4369,7 @@ static void enabledPerContextMethodMethodCallback(const v8::FunctionCallbackInfo |
static void methodWithUnsignedLongSequenceMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithUnsignedLongSequence", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithUnsignedLongSequence", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4249,12 +4388,12 @@ static void methodWithUnsignedLongSequenceMethodCallback(const v8::FunctionCallb |
static void stringArrayFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringArrayFunction", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("stringArrayFunction", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
} |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
V8TRYCATCH_VOID(Vector<String>, values, toNativeArray<String>(info[0], 1, info.GetIsolate())); |
Vector<String> result = imp->stringArrayFunction(values, exceptionState); |
if (exceptionState.throwIfNeeded()) |
@@ -4271,12 +4410,12 @@ static void stringArrayFunctionMethodCallback(const v8::FunctionCallbackInfo<v8: |
static void domStringListFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "domStringListFunction", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("domStringListFunction", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
} |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
V8TRYCATCH_VOID(DOMStringList*, values, V8DOMStringList::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8DOMStringList::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
RefPtr<DOMStringList> result = imp->domStringListFunction(values, exceptionState); |
if (exceptionState.throwIfNeeded()) |
@@ -4293,8 +4432,8 @@ static void domStringListFunctionMethodCallback(const v8::FunctionCallbackInfo<v |
static void getSVGDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "getSVGDocument", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
if (!BindingSecurity::shouldAllowAccessToNode(imp->getSVGDocument(exceptionState), exceptionState)) { |
v8SetReturnValueNull(info); |
exceptionState.throwIfNeeded(); |
@@ -4315,6 +4454,7 @@ static void getSVGDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::Valu |
static void convert1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "convert1", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("convert1", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4333,6 +4473,7 @@ static void convert1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in |
static void convert2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "convert2", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("convert2", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4351,6 +4492,7 @@ static void convert2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in |
static void mutablePointFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "mutablePointFunction", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
v8SetReturnValue(info, WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(imp->mutablePointFunction()))); |
} |
@@ -4364,6 +4506,7 @@ static void mutablePointFunctionMethodCallback(const v8::FunctionCallbackInfo<v8 |
static void immutablePointFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "immutablePointFunction", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
v8SetReturnValue(info, WTF::getPtr(SVGPropertyTearOff<SVGPoint>::create(imp->immutablePointFunction()))); |
} |
@@ -4377,6 +4520,7 @@ static void immutablePointFunctionMethodCallback(const v8::FunctionCallbackInfo< |
static void svgPointMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "svgPointMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("svgPointMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
@@ -4400,12 +4544,12 @@ static void svgPointMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu |
static void strictSVGPointMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "strictSVGPointMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("strictSVGPointMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
} |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8SVGPoint::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) { |
throwTypeError(ExceptionMessages::failedToExecute("strictSVGPointMethod", "TestObject", "parameter 1 is not of type 'SVGPoint'."), info.GetIsolate()); |
return; |
@@ -4431,6 +4575,7 @@ static void strictSVGPointMethodMethodCallback(const v8::FunctionCallbackInfo<v8 |
static void orangeMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "orange", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
imp->banana(); |
} |
@@ -4444,12 +4589,12 @@ static void orangeMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info |
static void strictFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "strictFunction", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 3)) { |
throwTypeError(ExceptionMessages::failedToExecute("strictFunction", "TestObject", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate()); |
return; |
} |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, info[0]); |
V8TRYCATCH_VOID(float, a, static_cast<float>(info[1]->NumberValue())); |
V8TRYCATCH_VOID(int, b, toInt32(info[2])); |
@@ -4468,6 +4613,7 @@ static void strictFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Valu |
static void variadicStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "variadicStringMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("variadicStringMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4487,6 +4633,7 @@ static void variadicStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8 |
static void variadicDoubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "variadicDoubleMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("variadicDoubleMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4506,6 +4653,7 @@ static void variadicDoubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8 |
static void variadicNodeMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "variadicNodeMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("variadicNodeMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4532,6 +4680,7 @@ static void variadicNodeMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: |
static void methodWithNullableArgumentsMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithNullableArguments", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 3)) { |
throwTypeError(ExceptionMessages::failedToExecute("methodWithNullableArguments", "TestObject", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate()); |
return; |
@@ -4561,6 +4710,7 @@ static void methodWithNullableArgumentsMethodCallback(const v8::FunctionCallback |
static void perWorldMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
imp->perWorldMethod(); |
} |
@@ -4574,6 +4724,7 @@ static void perWorldMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu |
static void perWorldMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
imp->perWorldMethod(); |
} |
@@ -4587,6 +4738,7 @@ static void perWorldMethodMethodCallbackForMainWorld(const v8::FunctionCallbackI |
static void overloadedPerWorldMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4598,6 +4750,7 @@ static void overloadedPerWorldMethod1Method(const v8::FunctionCallbackInfo<v8::V |
static void overloadedPerWorldMethod1MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4609,6 +4762,7 @@ static void overloadedPerWorldMethod1MethodForMainWorld(const v8::FunctionCallba |
static void overloadedPerWorldMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
@@ -4645,6 +4799,7 @@ static void overloadedPerWorldMethodMethodCallback(const v8::FunctionCallbackInf |
static void overloadedPerWorldMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
@@ -4681,6 +4836,7 @@ static void overloadedPerWorldMethodMethodCallbackForMainWorld(const v8::Functio |
static void activityLoggedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggedMethod1", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedMethod1", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4704,6 +4860,7 @@ static void activityLoggedMethod1MethodCallback(const v8::FunctionCallbackInfo<v |
static void activityLoggedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggedMethod2", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedMethod2", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4727,6 +4884,7 @@ static void activityLoggedMethod2MethodCallback(const v8::FunctionCallbackInfo<v |
static void activityLoggedMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggedMethod2", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedMethod2", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4750,6 +4908,7 @@ static void activityLoggedMethod2MethodCallbackForMainWorld(const v8::FunctionCa |
static void activityLoggedInIsolatedWorldMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggedInIsolatedWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedInIsolatedWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4773,6 +4932,7 @@ static void activityLoggedInIsolatedWorldMethodMethodCallback(const v8::Function |
static void activityLoggedInIsolatedWorldMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggedInIsolatedWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedInIsolatedWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4791,6 +4951,7 @@ static void activityLoggedInIsolatedWorldMethodMethodCallbackForMainWorld(const |
static void overloadedActivityLoggedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedActivityLoggedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedActivityLoggedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4802,6 +4963,7 @@ static void overloadedActivityLoggedMethod1Method(const v8::FunctionCallbackInfo |
static void overloadedActivityLoggedMethod1MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedActivityLoggedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedActivityLoggedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
return; |
@@ -4813,6 +4975,7 @@ static void overloadedActivityLoggedMethod1MethodForMainWorld(const v8::Function |
static void overloadedActivityLoggedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedActivityLoggedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedActivityLoggedMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
@@ -4854,6 +5017,7 @@ static void overloadedActivityLoggedMethodMethodCallback(const v8::FunctionCallb |
static void overloadedActivityLoggedMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedActivityLoggedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("overloadedActivityLoggedMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
@@ -4895,6 +5059,7 @@ static void overloadedActivityLoggedMethodMethodCallbackForMainWorld(const v8::F |
static void deprecatedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecatedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
imp->deprecatedMethod(); |
} |
@@ -4909,6 +5074,7 @@ static void deprecatedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
static void deprecatedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecatedStaticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
TestObj::deprecatedStaticMethod(); |
} |