diff options
Diffstat (limited to 'modules/system.c')
| -rw-r--r-- | modules/system.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/system.c b/modules/system.c index 004beb47..87350d15 100644 --- a/modules/system.c +++ b/modules/system.c @@ -163,13 +163,16 @@ static JSFunctionSpec module_funcs[] = { }; JSBool -gjs_js_define_system_stuff(JSContext *context, - JSObject *module) +gjs_js_define_system_stuff(JSContext *context, + JSObject **module_out) { GjsContext *gjs_context; char *program_name; jsval value; JSBool retval; + JSObject *module; + + module = JS_NewObject (context, NULL, NULL, NULL); if (!JS_DefineFunctions(context, module, &module_funcs[0])) return JS_FALSE; @@ -207,6 +210,7 @@ gjs_js_define_system_stuff(JSContext *context, out: g_free(program_name); + *module_out = module; return retval; } |
