fun->u.script = js_NewScript(cx, 1, 0, 0);
fun->u.script = js_NewScript(cx, 0, 0, 0);
js_InitFunctionClass(JSContext *cx, JSObject *obj){    JSObject *proto;    JSAtom *atom;    JSFunction *fun;    proto = JS_InitClass(cx, obj, NULL, &js_FunctionClass, Function, 1,                         function_props, function_methods, NULL, NULL);    if (!proto)        return NULL;    atom = js_Atomize(cx, js_FunctionClass.name, strlen(js_FunctionClass.name),                      0);    if (!atom)        goto bad;    fun = js_NewFunction(cx, proto, NULL, 0, 0, obj, NULL);    if (!fun)        goto bad;    fun->u.script = js_NewScript(cx, 1, 0, 0);    if (!fun->u.script)        goto bad;    fun->u.script->code[0] = JSOP_STOP;    fun->interpreted = JS_TRUE;    return proto;bad:    cx->newborn[GCX_OBJECT] = NULL;    return NULL;}