gjs/gjs-0.7.9-ffb10.patch
Christopher Aillon 3ffb1b977f Rebuild
JS API changed slightly once more.  Just making the change directly
instead of the patch to configure that's upstream in order to avoid
adding a BuildRequire and call to autoconf.
2011-01-25 14:52:20 -08:00

15 lines
602 B
Diff

Based on http://git.gnome.org/browse/gjs/commit/?id=950d000d94cef63496747119e7822f9978088864
diff -up gjs-0.7.9/gjs/jsapi-util.c.ffb10 gjs-0.7.9/gjs/jsapi-util.c
--- gjs-0.7.9/gjs/jsapi-util.c.ffb10 2011-01-25 01:05:34.013344556 -0800
+++ gjs-0.7.9/gjs/jsapi-util.c 2011-01-25 01:06:20.121768121 -0800
@@ -255,7 +255,7 @@ gjs_init_context_standard (JSContext
{
JSObject *global;
#ifdef HAVE_MOZJS_2
- global = JS_NewGlobalObject(context, &global_class);
+ global = JS_NewCompartmentAndGlobalObject(context, &global_class, NULL);
if (global == NULL)
return FALSE;
#else