EncodedJSValue JSC_HOST_CALL jsXPathExceptionPrototypeFunctionToString(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSXPathException::s_info)) return throwVMTypeError(exec); JSXPathException* castedThis = static_cast<JSXPathException*>(asObject(thisValue)); XPathException* imp = static_cast<XPathException*>(castedThis->impl()); JSC::JSValue result = jsString(exec, imp->toString()); return JSValue::encode(result); }
static v8::Handle<v8::Value> toStringCallback(const v8::Arguments& args) { XPathException* imp = V8XPathException::toNative(args.Holder()); return v8String(imp->toString(), args.GetIsolate()); }