Beispiel #1
0
JSValue jsEventExceptionMessage(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 = jsString(exec, imp->message());
    return result;
}
Beispiel #2
0
EncodedJSValue JSC_HOST_CALL jsEventExceptionPrototypeFunctionToString(ExecState* exec)
{
    JSValue thisValue = exec->hostThisValue();
    if (!thisValue.inherits(&JSEventException::s_info))
        return throwVMTypeError(exec);
    JSEventException* castedThis = static_cast<JSEventException*>(asObject(thisValue));
    EventException* imp = static_cast<EventException*>(castedThis->impl());


    JSC::JSValue result = jsString(exec, imp->toString());
    return JSValue::encode(result);
}
Beispiel #3
0
 static v8::Handle<v8::Value> toStringCallback(const v8::Arguments& args) {
   INC_STATS("DOM.EventException.toString");
   EventException* imp = V8EventException::toNative(args.Holder());
   return v8String(imp->toString());
 }
Beispiel #4
0
 static v8::Handle<v8::Value> messageAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.EventException.message._get");
   EventException* imp = V8EventException::toNative(info.Holder());
   return v8String(imp->message());
 }