JSBool ans;
PR_STATIC_CALLBACK(JSBool)loc_replace(JSContext *cx, JSObject *obj,	    uint argc, jsval *argv, jsval *rval){    JSURL *url;    JSBool ans;    if (!(url = JS_GetInstancePrivate(cx, obj, &lm_location_class, argv)))        return JS_FALSE;    url->url_decoder->replace_location = JS_TRUE;    /* Note: loc_assign ignores the id in favor of its own id anyway */    ans = loc_assign(cx, obj, 0, argv);    *rval = *argv;    return ans;}