| Index: Source/bindings/tests/results/V8TestObjectPython.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestObjectPython.cpp b/Source/bindings/tests/results/V8TestObjectPython.cpp
|
| index 9d0dcaa9221cfa5e5118d87895d1a8bdbaa1eddd..836c3d92b14aa8cd23a33f5e948697146e2873a3 100644
|
| --- a/Source/bindings/tests/results/V8TestObjectPython.cpp
|
| +++ b/Source/bindings/tests/results/V8TestObjectPython.cpp
|
| @@ -175,6 +175,7 @@ static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
|
|
|
| static void dateAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "dateAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(double, cppValue, toWebCoreDate(jsValue));
|
| imp->setDateAttribute(cppValue);
|
| @@ -202,6 +203,7 @@ static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const
|
|
|
| static void stringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| imp->setStringAttribute(cppValue);
|
| @@ -242,6 +244,7 @@ static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const
|
|
|
| static void booleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "booleanAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue());
|
| imp->setBooleanAttribute(cppValue);
|
| @@ -269,6 +272,7 @@ static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
|
|
|
| static void byteAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt8(jsValue));
|
| imp->setByteAttribute(cppValue);
|
| @@ -296,6 +300,7 @@ static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
|
|
|
| static void doubleAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(double, cppValue, static_cast<double>(jsValue->NumberValue()));
|
| imp->setDoubleAttribute(cppValue);
|
| @@ -323,6 +328,7 @@ static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
|
|
|
| static void floatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()));
|
| imp->setFloatAttribute(cppValue);
|
| @@ -350,6 +356,7 @@ static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
|
|
|
| static void longAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setLongAttribute(cppValue);
|
| @@ -377,6 +384,7 @@ static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
|
|
|
| static void longLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(long long, cppValue, toInt64(jsValue));
|
| imp->setLongLongAttribute(cppValue);
|
| @@ -404,6 +412,7 @@ static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
|
|
|
| static void octetAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(unsigned, cppValue, toUInt8(jsValue));
|
| imp->setOctetAttribute(cppValue);
|
| @@ -431,6 +440,7 @@ static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
|
|
|
| static void shortAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt16(jsValue));
|
| imp->setShortAttribute(cppValue);
|
| @@ -458,6 +468,7 @@ static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
|
|
|
| static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(unsigned, cppValue, toUInt32(jsValue));
|
| imp->setUnsignedLongAttribute(cppValue);
|
| @@ -485,6 +496,7 @@ static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
|
|
|
| static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(unsigned long long, cppValue, toUInt64(jsValue));
|
| imp->setUnsignedLongLongAttribute(cppValue);
|
| @@ -512,6 +524,7 @@ static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
|
|
|
| static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(unsigned, cppValue, toUInt16(jsValue));
|
| imp->setUnsignedShortAttribute(cppValue);
|
| @@ -539,6 +552,7 @@ static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
|
|
|
| static void cssAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setCSSAttribute(cppValue);
|
| @@ -566,6 +580,7 @@ static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
|
|
|
| static void imeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setIMEAttribute(cppValue);
|
| @@ -593,6 +608,7 @@ static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
|
|
|
| static void svgAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setSVGAttribute(cppValue);
|
| @@ -620,6 +636,7 @@ static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
|
|
|
| static void xmlAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setXMLAttribute(cppValue);
|
| @@ -647,6 +664,7 @@ static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co
|
|
|
| static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "nodeFilterAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(jsValue, info.GetIsolate()));
|
| imp->setNodeFilterAttribute(WTF::getPtr(cppValue));
|
| @@ -674,6 +692,7 @@ static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8::
|
|
|
| static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScriptValueAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptValue::create(jsValue, info.GetIsolate()));
|
| imp->setSerializedScriptValueAttribute(WTF::getPtr(cppValue));
|
| @@ -701,6 +720,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", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate()));
|
| imp->setAnyAttribute(cppValue);
|
| @@ -728,6 +748,7 @@ static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const
|
|
|
| static void promiseAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "promiseAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(jsValue));
|
| imp->setPromiseAttribute(cppValue);
|
| @@ -755,6 +776,7 @@ static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
|
|
|
| static void documentAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "documentAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Document*, cppValue, V8Document::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setDocumentAttribute(WTF::getPtr(cppValue));
|
| @@ -782,6 +804,7 @@ static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin
|
|
|
| static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "documentFragmentAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentFragment::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setDocumentFragmentAttribute(WTF::getPtr(cppValue));
|
| @@ -809,6 +832,7 @@ static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>,
|
|
|
| static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "documentTypeAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setDocumentTypeAttribute(WTF::getPtr(cppValue));
|
| @@ -836,6 +860,7 @@ static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const
|
|
|
| static void elementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "elementAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Element*, cppValue, V8Element::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setElementAttribute(WTF::getPtr(cppValue));
|
| @@ -863,6 +888,7 @@ static void entityAttributeAttributeGetterCallback(v8::Local<v8::String>, const
|
|
|
| static void entityAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "entityAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Entity*, cppValue, V8Entity::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Entity::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setEntityAttribute(WTF::getPtr(cppValue));
|
| @@ -890,6 +916,7 @@ static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
|
|
|
| static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "nodeAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setNodeAttribute(WTF::getPtr(cppValue));
|
| @@ -917,6 +944,7 @@ static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co
|
|
|
| static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "shadowRootAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8ShadowRoot::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setShadowRootAttribute(WTF::getPtr(cppValue));
|
| @@ -944,6 +972,7 @@ static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c
|
|
|
| static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "arrayBufferAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(ArrayBuffer*, cppValue, jsValue->IsArrayBuffer() ? V8ArrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(jsValue)) : 0);
|
| imp->setArrayBufferAttribute(WTF::getPtr(cppValue));
|
| @@ -971,6 +1000,7 @@ static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>,
|
|
|
| static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "float32ArrayAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0);
|
| imp->setFloat32ArrayAttribute(WTF::getPtr(cppValue));
|
| @@ -998,6 +1028,7 @@ static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
|
|
|
| static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "uint8ArrayAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Uint8Array*, cppValue, jsValue->IsUint8Array() ? V8Uint8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(jsValue)) : 0);
|
| imp->setUint8ArrayAttribute(WTF::getPtr(cppValue));
|
| @@ -1025,6 +1056,7 @@ static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str
|
|
|
| static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceEmptyAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue));
|
| @@ -1052,6 +1084,7 @@ static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
|
|
|
| static void selfAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "self", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setSelf(WTF::getPtr(cppValue));
|
| @@ -1092,6 +1125,7 @@ static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>
|
|
|
| static void htmlCollectionAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "htmlCollectionAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(HTMLCollection*, cppValue, V8HTMLCollection::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8HTMLCollection::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setHTMLCollectionAttribute(WTF::getPtr(cppValue));
|
| @@ -1119,6 +1153,7 @@ static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c
|
|
|
| static void htmlElementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "htmlElementAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(HTMLElement*, cppValue, V8HTMLElement::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8HTMLElement::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| imp->setHTMLElementAttribute(WTF::getPtr(cppValue));
|
| @@ -1146,6 +1181,7 @@ static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c
|
|
|
| static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(jsValue, 0, info.GetIsolate()));
|
| imp->setStringArrayAttribute(cppValue);
|
| @@ -1173,6 +1209,7 @@ static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
|
|
|
| static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceEmptyArrayAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(jsValue, 0, info.GetIsolate())));
|
| imp->setTestInterfaceEmptyArrayAttribute(cppValue);
|
| @@ -1200,6 +1237,7 @@ static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
|
|
|
| static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, info.GetIsolate()));
|
| imp->setFloatArrayAttribute(cppValue);
|
| @@ -1233,6 +1271,7 @@ static void nullableStringAttributeAttributeGetterCallback(v8::Local<v8::String>
|
|
|
| static void nullableStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "nullableStringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| imp->setNullableStringAttribute(cppValue);
|
| @@ -1266,6 +1305,7 @@ static void nullableLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
|
|
|
| static void nullableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "nullableLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setNullableLongAttribute(cppValue);
|
| @@ -1293,6 +1333,7 @@ static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
|
|
|
| static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| String string = cppValue;
|
| @@ -1322,6 +1363,7 @@ static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
|
|
|
| static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "staticStringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| TestObjectPython::setStaticStringAttribute(cppValue);
|
| }
|
| @@ -1347,6 +1389,7 @@ static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
|
|
|
| static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| TestObjectPython::setStaticLongAttribute(cppValue);
|
| }
|
| @@ -1374,6 +1417,7 @@ static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
|
|
|
| static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "eventHandlerAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| transferHiddenDependency(info.Holder(), imp->eventHandlerAttribute(isolatedWorldForIsolate(info.GetIsolate())), jsValue, V8TestObjectPython::eventListenerCacheIndex, info.GetIsolate());
|
| imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate()));
|
| @@ -1404,6 +1448,7 @@ static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac
|
|
|
| static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
|
| @@ -1439,6 +1484,7 @@ static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
|
|
|
| static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue);
|
| @@ -1466,6 +1512,7 @@ static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
|
|
|
| static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingSetterForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
|
| @@ -1508,6 +1555,7 @@ static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str
|
|
|
| static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttributeAnyAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate()));
|
| imp->setCachedAttributeAnyAttribute(cppValue);
|
| @@ -1537,6 +1585,7 @@ static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca
|
|
|
| static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "callWithExecutionContextAnyAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate()));
|
| ExecutionContext* scriptContext = getExecutionContext();
|
| @@ -1553,7 +1602,7 @@ static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca
|
| static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityForNodeReadonlyDocumentAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate());
|
| if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReadonlyDocumentAttribute(), exceptionState)) {
|
| v8SetReturnValueNull(info);
|
| exceptionState.throwIfNeeded();
|
| @@ -1589,6 +1638,7 @@ static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String
|
| #if ENABLE(CONDITION)
|
| static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setConditionalLongAttribute(cppValue);
|
| @@ -1624,6 +1674,7 @@ static void conditionalAndLongAttributeAttributeGetterCallback(v8::Local<v8::Str
|
| #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
|
| static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAndLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setConditionalAndLongAttribute(cppValue);
|
| @@ -1659,6 +1710,7 @@ static void conditionalOrLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
|
| #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
|
| static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setConditionalOrLongAttribute(cppValue);
|
| @@ -1697,6 +1749,7 @@ static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
|
|
|
| static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setCustomGetterLongAttribute(cppValue);
|
| @@ -1783,6 +1836,7 @@ static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String>
|
|
|
| static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setDeprecatedLongAttribute(cppValue);
|
| @@ -1811,6 +1865,7 @@ static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
|
|
|
| static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_WITH_TYPECHECK_VOID(int, cppValue, toInt32(jsValue, EnforceRange, ok), info.GetIsolate());
|
| imp->setEnforceRangeLongAttribute(cppValue);
|
| @@ -1838,6 +1893,7 @@ static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
|
|
|
| static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccessorsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setExposeJSAccessorsLongAttribute(cppValue);
|
| @@ -1854,7 +1910,7 @@ static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
|
| static void getterRaisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(ExceptionState::GetterContext, "getterRaisesExceptionLongAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate());
|
| int jsValue = imp->getterRaisesExceptionLongAttribute(exceptionState);
|
| if (UNLIKELY(exceptionState.throwIfNeeded()))
|
| return;
|
| @@ -1870,6 +1926,7 @@ static void getterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
|
|
|
| static void getterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "getterRaisesExceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setGetterRaisesExceptionLongAttribute(cppValue);
|
| @@ -1897,6 +1954,7 @@ static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
|
|
|
| static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setImplementedAsName(cppValue);
|
| @@ -1932,6 +1990,7 @@ static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
|
|
|
| static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterImplementedAsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setImplementedAsNameWithCustomGetter(cppValue);
|
| @@ -1980,6 +2039,7 @@ static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
|
|
|
| static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setMeasureAsLongAttribute(cppValue);
|
| @@ -2008,6 +2068,7 @@ static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
|
|
|
| static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setNotEnumerableLongAttribute(cppValue);
|
| @@ -2035,6 +2096,7 @@ static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
|
|
|
| static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setPerContextEnabledLongAttribute(cppValue);
|
| @@ -2062,6 +2124,7 @@ static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S
|
|
|
| static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2089,6 +2152,7 @@ static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8:
|
|
|
| static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2145,6 +2209,7 @@ static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
|
|
|
| static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2180,6 +2245,7 @@ static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
|
|
|
| static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2215,6 +2281,7 @@ static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
|
|
|
| static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2247,6 +2314,7 @@ static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
|
|
|
| static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2277,6 +2345,7 @@ static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
|
|
|
| static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2307,6 +2376,7 @@ static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
|
|
|
| static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2337,6 +2407,7 @@ static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
|
|
|
| static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2364,6 +2435,7 @@ static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
|
|
|
| static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(cppValue);
|
| @@ -2379,7 +2451,7 @@ static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
|
| static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
|
| {
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptionLongAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate());
|
| int jsValue = imp->raisesExceptionLongAttribute(exceptionState);
|
| if (UNLIKELY(exceptionState.throwIfNeeded()))
|
| return;
|
| @@ -2395,9 +2467,9 @@ static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St
|
|
|
| static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
| imp->setRaisesExceptionLongAttribute(cppValue, exceptionState);
|
| exceptionState.throwIfNeeded();
|
| }
|
| @@ -2424,6 +2496,7 @@ static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S
|
|
|
| static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "reflectTestInterfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2453,6 +2526,7 @@ static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
|
|
|
| static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "reflectReflectedNameAttributeTestAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2482,6 +2556,7 @@ static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String>
|
|
|
| static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "reflectBooleanAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue());
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2511,6 +2586,7 @@ static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c
|
|
|
| static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2540,6 +2616,7 @@ static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S
|
|
|
| static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsignedShortAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(unsigned, cppValue, toUInt16(jsValue));
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2569,6 +2646,7 @@ static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St
|
|
|
| static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsignedLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(unsigned, cppValue, toUInt32(jsValue));
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2598,6 +2676,7 @@ static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC
|
|
|
| static void idAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "id", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2627,6 +2706,7 @@ static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
|
|
|
| static void nameAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "name", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2656,6 +2736,7 @@ static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper
|
|
|
| static void classAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "class", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2685,6 +2766,7 @@ static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8::
|
|
|
| static void reflectedIdAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedId", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2714,6 +2796,7 @@ static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8
|
|
|
| static void reflectedNameAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedName", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2743,6 +2826,7 @@ static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v
|
|
|
| static void reflectedClassAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedClass", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -2785,6 +2869,7 @@ static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
|
|
|
| static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setRuntimeEnabledLongAttribute(cppValue);
|
| @@ -2817,6 +2902,7 @@ static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo
|
| #if ENABLE(CONDITION)
|
| static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRuntimeEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setConditionalRuntimeEnabledLongAttribute(cppValue);
|
| @@ -2847,6 +2933,7 @@ static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
|
|
|
| static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "setterCallWithActiveWindowAndFirstWindowStringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| imp->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(activeDOMWindow(), firstDOMWindow(), cppValue);
|
| @@ -2874,9 +2961,9 @@ static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
|
|
|
| static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesExceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
| imp->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState);
|
| exceptionState.throwIfNeeded();
|
| }
|
| @@ -2903,6 +2990,7 @@ static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8
|
|
|
| static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeCheckingFloatAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()));
|
| imp->setStrictTypeCheckingFloatAttribute(cppValue);
|
| @@ -2930,8 +3018,10 @@ static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8::
|
|
|
| static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeCheckingTestInterfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate()))) {
|
| - throwTypeError(ExceptionMessages::failedToSet("strictTypeCheckingTestInterfaceAttribute", "TestObjectPython", "The provided value is not of type 'TestInterface'."), info.GetIsolate());
|
| + exceptionState.throwTypeError("The provided value is not of type 'TestInterface'.");
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| @@ -2961,6 +3051,7 @@ static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
|
|
|
| static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "treatNullAsNullStringStringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppValue, jsValue);
|
| imp->setTreatNullAsNullStringStringAttribute(cppValue);
|
| @@ -2988,6 +3079,7 @@ static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
|
|
|
| static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedNullStringAsNullStringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| imp->setTreatReturnedNullStringAsNullStringAttribute(cppValue);
|
| @@ -3015,6 +3107,7 @@ static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
|
|
|
| static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedNullStringAsUndefinedStringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| imp->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
|
| @@ -3042,6 +3135,7 @@ static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
|
|
|
| static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "urlStringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -3071,6 +3165,7 @@ static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
|
|
|
| static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "urlStringAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| @@ -3103,6 +3198,7 @@ static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String
|
|
|
| static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
|
| imp->setUnforgeableLongAttribute(cppValue);
|
| @@ -3137,6 +3233,7 @@ static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
|
|
|
| static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->voidMethod();
|
| }
|
| @@ -3150,6 +3247,7 @@ static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython::staticVoidMethod();
|
| }
|
|
|
| @@ -3162,6 +3260,7 @@ static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
|
|
| static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "dateMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, v8DateOrNull(imp->dateMethod(), info.GetIsolate()));
|
| }
|
| @@ -3175,6 +3274,7 @@ static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueString(info, imp->stringMethod(), info.GetIsolate());
|
| }
|
| @@ -3188,6 +3288,7 @@ static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
|
|
|
| static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "readonlyDOMTimeStampMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampMethod()));
|
| }
|
| @@ -3201,6 +3302,7 @@ static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
|
|
|
| static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "booleanMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueBool(info, imp->booleanMethod());
|
| }
|
| @@ -3214,6 +3316,7 @@ static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
|
|
|
| static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "byteMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueInt(info, imp->byteMethod());
|
| }
|
| @@ -3227,6 +3330,7 @@ static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "doubleMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->doubleMethod());
|
| }
|
| @@ -3240,6 +3344,7 @@ static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
|
|
|
| static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "floatMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->floatMethod());
|
| }
|
| @@ -3253,6 +3358,7 @@ static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueInt(info, imp->longMethod());
|
| }
|
| @@ -3266,6 +3372,7 @@ static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "longLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, static_cast<double>(imp->longLongMethod()));
|
| }
|
| @@ -3279,6 +3386,7 @@ static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
|
|
|
| static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "octetMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueUnsigned(info, imp->octetMethod());
|
| }
|
| @@ -3292,6 +3400,7 @@ static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueInt(info, imp->shortMethod());
|
| }
|
| @@ -3305,6 +3414,7 @@ static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueUnsigned(info, imp->unsignedLongMethod());
|
| }
|
| @@ -3318,6 +3428,7 @@ static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedLongLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongMethod()));
|
| }
|
| @@ -3331,6 +3442,7 @@ static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
|
|
|
| static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedShortMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueUnsigned(info, imp->unsignedShortMethod());
|
| }
|
| @@ -3344,6 +3456,7 @@ static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
|
|
|
| static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDateArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3362,6 +3475,7 @@ static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3380,6 +3494,7 @@ static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
|
|
|
| static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodBooleanArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3398,6 +3513,7 @@ static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
|
|
|
| static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodByteArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodByteArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3416,6 +3532,7 @@ static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDoubleArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3434,6 +3551,7 @@ static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
|
|
|
| static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodFloatArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3452,6 +3570,7 @@ static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3470,6 +3589,7 @@ static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3488,6 +3608,7 @@ static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
|
|
|
| static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOctetArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodOctetArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3506,6 +3627,7 @@ static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodShortArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3524,6 +3646,7 @@ static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUnsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3542,6 +3665,7 @@ static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUnsignedLongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLongLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3560,6 +3684,7 @@ static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
|
|
|
| static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUnsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3578,6 +3703,7 @@ static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
|
|
|
| static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfaceEmptyMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->testInterfaceEmptyMethod());
|
| }
|
| @@ -3591,6 +3717,7 @@ static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
|
|
|
| static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3609,6 +3736,7 @@ static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
|
|
|
| static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 2)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3628,6 +3756,7 @@ static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
|
|
|
| static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "compareHowMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->compareHowMethod());
|
| }
|
| @@ -3641,6 +3770,7 @@ static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
|
|
| static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "anyMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->anyMethod().v8Value());
|
| }
|
| @@ -3654,6 +3784,7 @@ static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
|
|
|
| static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodMediaQueryListListenerArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryListListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3672,6 +3803,7 @@ static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
|
|
|
| static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodCompareHowArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3690,6 +3822,7 @@ static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
|
|
|
| static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodAnyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3708,6 +3841,7 @@ static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
|
|
| static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodAttrArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3726,6 +3860,7 @@ static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDocumentArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3744,6 +3879,7 @@ static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
|
|
|
| static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDocumentTypeArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTypeArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3762,6 +3898,7 @@ static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodElementArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3780,6 +3917,7 @@ static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
|
|
|
| static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodNodeArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3798,6 +3936,7 @@ static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "arrayBufferMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->arrayBufferMethod());
|
| }
|
| @@ -3811,6 +3950,7 @@ static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "arrayBufferViewMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->arrayBufferViewMethod());
|
| }
|
| @@ -3824,6 +3964,7 @@ static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
|
|
|
| static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "float32ArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->float32ArrayMethod());
|
| }
|
| @@ -3837,6 +3978,7 @@ static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "int32ArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->int32ArrayMethod());
|
| }
|
| @@ -3850,6 +3992,7 @@ static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
|
|
| static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "uint8ArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->uint8ArrayMethod());
|
| }
|
| @@ -3863,6 +4006,7 @@ static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
|
|
| static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayBufferArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBufferArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3881,6 +4025,7 @@ static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
|
|
|
| static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayBufferViewArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBufferViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3899,6 +4044,7 @@ static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
|
|
|
| static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodFloat32ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32ArrayArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3917,6 +4063,7 @@ static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodInt32ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3935,6 +4082,7 @@ static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
|
|
|
| static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUint8ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -3953,6 +4101,7 @@ static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
|
|
|
| static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "longArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, v8Array(imp->longArrayMethod(), info.GetIsolate()));
|
| }
|
| @@ -3966,6 +4115,7 @@ static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
|
|
|
| static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, v8Array(imp->stringArrayMethod(), info.GetIsolate()));
|
| }
|
| @@ -3979,6 +4129,7 @@ static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfaceEmptyArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayMethod(), info.GetIsolate()));
|
| }
|
| @@ -3992,6 +4143,7 @@ static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
|
|
|
| static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4010,6 +4162,7 @@ static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
|
|
|
| static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4028,6 +4181,7 @@ static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
|
|
|
| static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4046,6 +4200,7 @@ static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
|
|
|
| static void sequenceLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, v8Array(imp->sequenceLongMethod(), info.GetIsolate()));
|
| }
|
| @@ -4059,6 +4214,7 @@ static void sequenceLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void sequenceStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceStringMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, v8Array(imp->sequenceStringMethod(), info.GetIsolate()));
|
| }
|
| @@ -4072,6 +4228,7 @@ static void sequenceStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8
|
|
|
| static void sequenceTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceTestInterfaceEmptyMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, v8Array(imp->sequenceTestInterfaceEmptyMethod(), info.GetIsolate()));
|
| }
|
| @@ -4085,6 +4242,7 @@ static void sequenceTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCal
|
|
|
| static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4103,6 +4261,7 @@ static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4121,6 +4280,7 @@ static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
|
|
|
| static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4139,6 +4299,7 @@ static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
|
|
|
| static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodNullableStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4157,6 +4318,7 @@ static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback
|
|
|
| static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "testEnumMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueString(info, imp->testEnumMethod(), info.GetIsolate());
|
| }
|
| @@ -4170,6 +4332,7 @@ static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
|
|
|
| static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestEnumArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4193,6 +4356,7 @@ static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
|
|
|
| static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "dictionaryMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->dictionaryMethod());
|
| }
|
| @@ -4206,6 +4370,7 @@ static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
|
|
| static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeFilterMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->nodeFilterMethod());
|
| }
|
| @@ -4219,6 +4384,7 @@ static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
|
|
| static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->promiseMethod().v8Value());
|
| }
|
| @@ -4232,6 +4398,7 @@ static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
|
|
|
| static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "serializedScriptValueMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->serializedScriptValueMethod() ? imp->serializedScriptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIsolate())));
|
| }
|
| @@ -4245,6 +4412,7 @@ static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
|
|
|
| static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "xPathNSResolverMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValue(info, imp->xPathNSResolverMethod());
|
| }
|
| @@ -4258,6 +4426,7 @@ static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
|
|
|
| static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4280,6 +4449,7 @@ static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
|
|
|
| static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodNodeFilterArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4298,6 +4468,7 @@ static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
|
|
|
| static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodPromiseArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4320,6 +4491,7 @@ static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
|
|
|
| static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSerializedScriptValueArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSerializedScriptValueArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4341,6 +4513,7 @@ static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
|
|
|
| static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodXPathNSResolverArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSResolverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4359,6 +4532,7 @@ static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
|
|
|
| static void voidMethodSequenceDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceDictionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4377,6 +4551,7 @@ static void voidMethodSequenceDictionaryArgMethodCallback(const v8::FunctionCall
|
|
|
| static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodStringArgLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 2)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4396,6 +4571,7 @@ static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
|
|
|
| static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| imp->voidMethodOptionalStringArg();
|
| @@ -4414,6 +4590,7 @@ static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
|
|
|
| static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| imp->voidMethodOptionalTestInterfaceEmptyArg();
|
| @@ -4432,6 +4609,7 @@ static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
|
|
|
| static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| imp->voidMethodOptionalLongArg();
|
| @@ -4450,6 +4628,7 @@ static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(), info.GetIsolate());
|
| @@ -4468,6 +4647,7 @@ static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
|
|
|
| static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfaceEmptyMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg());
|
| @@ -4486,6 +4666,7 @@ static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
|
|
|
| static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| v8SetReturnValueInt(info, imp->longMethodOptionalLongArg());
|
| @@ -4504,6 +4685,7 @@ static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4527,6 +4709,7 @@ static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
|
|
|
| static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgOptionalLongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOptionalLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4555,6 +4738,7 @@ static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
|
|
|
| static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgOptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOptionalTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4578,6 +4762,7 @@ static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
|
|
|
| static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceEmptyArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfaceEmptyArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4601,6 +4786,7 @@ static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
|
|
|
| static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.GetIsolate()));
|
| if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isObject()) {
|
| @@ -4619,6 +4805,7 @@ static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
|
|
|
| static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodVariadicStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>(info, 0));
|
| imp->voidMethodVariadicStringArg(variadicStringArgs);
|
| @@ -4633,6 +4820,7 @@ static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
|
|
|
| static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodStringArgVariadicStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVariadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4652,6 +4840,7 @@ static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
|
|
|
| static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodVariadicTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
|
| for (int i = 0; i < info.Length(); ++i) {
|
| @@ -4673,6 +4862,7 @@ static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
|
|
|
| static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4699,6 +4889,7 @@ static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
|
|
|
| static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodA", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4710,6 +4901,7 @@ static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodA", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 2)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4746,6 +4938,7 @@ static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodB", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4757,6 +4950,7 @@ static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodB", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4797,6 +4991,7 @@ static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodC", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4808,6 +5003,7 @@ static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodC", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4844,6 +5040,7 @@ static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodD", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4855,6 +5052,7 @@ static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodD", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4890,6 +5088,7 @@ static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodE", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4901,6 +5100,7 @@ static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodE", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4936,6 +5136,7 @@ static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodF", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4947,6 +5148,7 @@ static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodF", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -4982,12 +5184,14 @@ static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodG", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->overloadedMethodG();
|
| }
|
|
|
| static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodG", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5019,18 +5223,21 @@ static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->overloadedPerWorldBindingsMethod();
|
| }
|
|
|
| static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->overloadedPerWorldBindingsMethod();
|
| }
|
|
|
| static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBindingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5062,6 +5269,7 @@ static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
|
|
|
| static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBindingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5093,6 +5301,7 @@ static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
|
|
|
| static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5103,6 +5312,7 @@ static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
|
|
|
| static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 2)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5138,9 +5348,9 @@ static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
|
|
|
| static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "addEventListener", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| EventTarget* impl = V8TestObjectPython::toNative(info.Holder());
|
| if (DOMWindow* window = impl->toDOMWindow()) {
|
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
| if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptionState)) {
|
| exceptionState.throwIfNeeded();
|
| return;
|
| @@ -5166,9 +5376,9 @@ static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
|
|
| static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "removeEventListener", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| EventTarget* impl = V8TestObjectPython::toNative(info.Holder());
|
| if (DOMWindow* window = impl->toDOMWindow()) {
|
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
| if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptionState)) {
|
| exceptionState.throwIfNeeded();
|
| return;
|
| @@ -5194,6 +5404,7 @@ static void removeEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8:
|
|
|
| static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodClampUnsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsignedShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5215,6 +5426,7 @@ static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
|
|
|
| static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodClampUnsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsignedLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5236,6 +5448,7 @@ static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
|
|
|
| static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultUndefinedTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0);
|
| imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInterfaceEmptyArg);
|
| @@ -5250,6 +5463,7 @@ static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
|
|
|
| static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultUndefinedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_VOID(int, defaultUndefinedLongArg, toInt32(info[0]));
|
| imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg);
|
| @@ -5264,6 +5478,7 @@ static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
|
|
|
| static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultUndefinedStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStringArg, info[0]);
|
| imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg);
|
| @@ -5278,6 +5493,7 @@ static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
|
|
|
| static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringStringArg, argumentOrNull(info, 0));
|
| imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg);
|
| @@ -5292,6 +5508,7 @@ static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
|
|
|
| static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodEnforceRangeLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodEnforceRangeLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5310,6 +5527,7 @@ static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
|
|
|
| static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTreatNullAsNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAsNullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5328,6 +5546,7 @@ static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
|
|
|
| static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5346,6 +5565,7 @@ static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
|
|
|
| static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingAccessForAllWorldsMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->activityLoggingAccessForAllWorldsMethod();
|
| }
|
| @@ -5364,6 +5584,7 @@ static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
|
|
|
| static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| ScriptState* currentState = ScriptState::current();
|
| if (!currentState)
|
| @@ -5387,6 +5608,7 @@ static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba
|
|
|
| static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| ScriptState* currentState = ScriptState::current();
|
| if (!currentState)
|
| @@ -5411,6 +5633,7 @@ static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba
|
|
|
| static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExecutionContextVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| ExecutionContext* scriptContext = getExecutionContext();
|
| imp->callWithExecutionContextVoidMethod(scriptContext);
|
| @@ -5425,6 +5648,7 @@ static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC
|
|
|
| static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateExecutionContextVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| ScriptState* currentState = ScriptState::current();
|
| if (!currentState)
|
| @@ -5449,6 +5673,7 @@ static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8
|
|
|
| static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateScriptArgumentsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| ScriptState* currentState = ScriptState::current();
|
| if (!currentState)
|
| @@ -5473,6 +5698,7 @@ static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
|
|
|
| static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| ScriptState* currentState = ScriptState::current();
|
| @@ -5513,6 +5739,7 @@ static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
|
|
|
| static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithActiveWindow", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->callWithActiveWindow(activeDOMWindow());
|
| }
|
| @@ -5526,6 +5753,7 @@ static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8
|
|
|
| static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithActiveWindowScriptWindow", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->callWithActiveWindowScriptWindow(activeDOMWindow(), firstDOMWindow());
|
| }
|
| @@ -5539,6 +5767,7 @@ static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal
|
|
|
| static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "checkSecurityForNodeVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeVoidMethod(exceptionState), exceptionState)) {
|
| v8SetReturnValueNull(info);
|
| @@ -5558,6 +5787,7 @@ static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
|
| #if ENABLE(CONDITION)
|
| static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditionalConditionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->conditionalConditionVoidMethod();
|
| }
|
| @@ -5575,6 +5805,7 @@ static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb
|
| #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
|
| static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditionalCondition1AndCondition2VoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->conditionalCondition1AndCondition2VoidMethod();
|
| }
|
| @@ -5592,6 +5823,7 @@ static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8:
|
| #if ENABLE(CONDITION)
|
| static void conditionalConditionStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditionalConditionStaticVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython::conditionalConditionStaticVoidMethod();
|
| }
|
| #endif // ENABLE(CONDITION)
|
| @@ -5623,6 +5855,7 @@ static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio
|
|
|
| static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "customElementCallbacksVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| imp->customElementCallbacksVoidMethod();
|
| @@ -5637,6 +5870,7 @@ static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal
|
|
|
| static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecatedVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->deprecatedVoidMethod();
|
| }
|
| @@ -5651,6 +5885,7 @@ static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
|
|
|
| static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "doNotCheckSignatureVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->doNotCheckSignatureVoidMethod();
|
| }
|
| @@ -5664,6 +5899,7 @@ static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba
|
|
|
| static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementedAsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->implementedAsMethodName();
|
| }
|
| @@ -5677,6 +5913,7 @@ static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo
|
|
|
| static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->measureAsVoidMethod();
|
| }
|
| @@ -5691,6 +5928,7 @@ static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
|
|
|
| static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "notEnumerableVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->notEnumerableVoidMethod();
|
| }
|
| @@ -5704,6 +5942,7 @@ static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo
|
|
|
| static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perContextEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->perContextEnabledVoidMethod();
|
| }
|
| @@ -5717,6 +5956,7 @@ static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback
|
|
|
| static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->perWorldBindingsVoidMethod();
|
| }
|
| @@ -5730,6 +5970,7 @@ static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI
|
|
|
| static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->perWorldBindingsVoidMethod();
|
| }
|
| @@ -5743,6 +5984,7 @@ static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
|
|
|
| static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
|
| }
|
| @@ -5761,6 +6003,7 @@ static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
|
|
|
| static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
|
| }
|
| @@ -5779,6 +6022,7 @@ static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
|
|
|
| static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
|
| }
|
| @@ -5797,6 +6041,7 @@ static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
|
|
|
| static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
|
| }
|
| @@ -5810,6 +6055,7 @@ static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
|
|
|
| static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5828,6 +6074,7 @@ static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
|
|
|
| static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5846,8 +6093,8 @@ static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
|
|
|
| static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
| imp->raisesExceptionVoidMethod(exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
| @@ -5862,8 +6109,8 @@ static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionVoidMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| - ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() <= 0)) {
|
| imp->raisesExceptionVoidMethodOptionalLongArg(exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| @@ -5885,6 +6132,7 @@ static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
|
|
|
| static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "readOnlyVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->readOnlyVoidMethod();
|
| }
|
| @@ -5898,6 +6146,7 @@ static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "notEnumerableReadOnlyVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->notEnumerableReadOnlyVoidMethod();
|
| }
|
| @@ -5911,6 +6160,7 @@ static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall
|
|
|
| static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->runtimeEnabledVoidMethod();
|
| }
|
| @@ -5924,6 +6174,7 @@ static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
|
|
|
| static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsRuntimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->perWorldBindingsRuntimeEnabledVoidMethod();
|
| }
|
| @@ -5937,6 +6188,7 @@ static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun
|
|
|
| static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBindingsRuntimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->perWorldBindingsRuntimeEnabledVoidMethod();
|
| }
|
| @@ -5950,6 +6202,7 @@ static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
|
|
|
| static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "strictTypeCheckingVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoidMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| return;
|
| @@ -5972,6 +6225,7 @@ static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons
|
|
|
| static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "treatReturnedNullStringAsNullStringMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringMethod(), info.GetIsolate());
|
| }
|
| @@ -5985,6 +6239,7 @@ static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu
|
|
|
| static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "treatReturnedNullStringAsUndefinedStringMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefinedStringMethod(), info.GetIsolate());
|
| }
|
| @@ -5998,6 +6253,7 @@ static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v
|
|
|
| static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "unforgeableVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate());
|
| TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
|
| imp->unforgeableVoidMethod();
|
| }
|
|
|