NULL, NULL, attrs, NULL)) {
NULL, NULL, attrs & ~JSFUN_FLAGS_MASK, NULL)) {
js_DefineFunction(JSContext *cx, JSObject *obj, JSAtom *atom, JSNative native,                  uintN nargs, uintN attrs){    JSFunction *fun;    fun = js_NewFunction(cx, NULL, native, nargs, attrs, obj, atom);    if (!fun)        return NULL;    if (!OBJ_DEFINE_PROPERTY(cx, obj, (jsid)atom, OBJECT_TO_JSVAL(fun->object),                             NULL, NULL, attrs, NULL)) {        return NULL;    }    return fun;}