script = fun->script;
script = FUN_SCRIPT(fun);
ValueToScript(JSContext *cx, jsval v){    JSScript *script;    JSFunction *fun;    if (JSVAL_IS_OBJECT(v) &&        JS_GET_CLASS(cx, JSVAL_TO_OBJECT(v)) == &js_ScriptClass) {        script = (JSScript *) JS_GetPrivate(cx, JSVAL_TO_OBJECT(v));    } else {        fun = JS_ValueToFunction(cx, v);        if (!fun)            return NULL;        script = fun->script;    }    return script;}