JSValue JSC_HOST_CALL jsHTMLAnchorElementPrototypeFunctionToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
    UNUSED_PARAM(args);
    if (!thisValue.inherits(&JSHTMLAnchorElement::s_info))
        return throwError(exec, TypeError);
    JSHTMLAnchorElement* castedThisObj = static_cast<JSHTMLAnchorElement*>(asObject(thisValue));
    HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThisObj->impl());


    JSC::JSValue result = jsString(exec, imp->toString());
    return result;
}
Exemple #2
0
 static v8::Handle<v8::Value> toStringCallback(const v8::Arguments& args) {
   INC_STATS("DOM.HTMLAnchorElement.toString");
   HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(args.Holder());
   return v8String(imp->toString());
 }
static v8::Handle<v8::Value> toStringCallback(const v8::Arguments& args)
{
    HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(args.Holder());
    return v8String(imp->toString(), args.GetIsolate());
}