static void attrWithGetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { ExceptionState exceptionState(ExceptionState::SetterContext, "attrWithGetterException", "TestTypedefs", info.Holder(), info.GetIsolate()); TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), exceptionState); imp->setAttrWithGetterException(cppValue); }
static void attrWithGetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); imp->setAttrWithGetterException(cppValue); }