JSValue jsTestExceptionName(ExecState* exec, JSValue slotBase, PropertyName) { JSTestException* castedThis = jsCast<JSTestException*>(asObject(slotBase)); UNUSED_PARAM(exec); TestException* impl = static_cast<TestException*>(castedThis->impl()); JSValue result = jsString(exec, impl->name()); return result; }
static v8::Handle<v8::Value> nameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { TestException* imp = V8TestException::toNative(info.Holder()); return v8String(imp->name(), info.GetIsolate(), ReturnUnsafeHandle); }
static v8::Handle<v8::Value> nameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.TestException.name._get"); TestException* imp = V8TestException::toNative(info.Holder()); return v8String(imp->name(), info.GetIsolate()); }
static void nameAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) { TestException* imp = V8TestException::toNative(info.Holder()); v8SetReturnValueString(info, imp->name(), info.GetIsolate()); return; }