Example #1
0
JSValue JSC_HOST_CALL jsCoordinatesPrototypeFunctionToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
{
    UNUSED_PARAM(args);
    if (!thisValue.isObject(&JSCoordinates::s_info))
        return throwError(exec, TypeError);
    JSCoordinates* castedThisObj = static_cast<JSCoordinates*>(asObject(thisValue));
    Coordinates* imp = static_cast<Coordinates*>(castedThisObj->impl());


    JSC::JSValue result = jsString(exec, imp->toString());
    return result;
}