JSString *str = JSVAL_TO_STRING(argv[0]);
JSString *str = JSVAL_TO_STRING(argv[argNum]);
getStringArgument(JSContext *cx, JSObject *obj, uintN argc, jsval *argv){    if (argc == 0 || !JSVAL_IS_STRING(argv[0])) {        JS_ReportError(cx, "String argument expected");        return nsnull;    }    /*     * We don't want to use JS_ValueToString because we want to be able     * to have an object to represent a target in subsequent versions.     */    JSString *str = JSVAL_TO_STRING(argv[0]);    if (!str)        return nsnull;    return JS_GetStringBytes(str);}