JSValue jsEventExceptionCode(ExecState* exec, JSValue slotBase, const Identifier&) { JSEventException* castedThis = static_cast<JSEventException*>(asObject(slotBase)); UNUSED_PARAM(exec); EventException* imp = static_cast<EventException*>(castedThis->impl()); JSValue result = jsNumber(exec, imp->code()); return result; }
static v8::Handle<v8::Value> codeAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.EventException.code._get"); EventException* imp = V8EventException::toNative(info.Holder()); return v8::Integer::New(imp->code()); }