[gjs] Some simple build fixes



commit 21e452ee4e8387e2f433690454d60313434fe6f5
Author: Tim Lunn <tim feathertop org>
Date:   Wed Dec 12 08:46:29 2012 +1100

    Some simple build fixes
    
    These only end up as compile failures in js187, but they
    should be harmless here.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678410

 gjs/context.c    |    3 ---
 gjs/jsapi-util.h |    2 +-
 2 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gjs/context.c b/gjs/context.c
index b7f799a..f3a381e 100644
--- a/gjs/context.c
+++ b/gjs/context.c
@@ -572,9 +572,6 @@ gjs_context_constructor (GType                  type,
 
     JS_BeginRequest(js_context->context);
 
-    /* same as firefox, see discussion at
-     * https://bugzilla.mozilla.org/show_bug.cgi?id=420869 */
-    JS_SetScriptStackQuota(js_context->context, 100*1024*1024);
 
     /* JSOPTION_DONT_REPORT_UNCAUGHT: Don't send exceptions to our
      * error report handler; instead leave them set.  This allows us
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index edb04d3..4490861 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -170,7 +170,7 @@ jsval gjs_##cname##_create_proto(JSContext *context, JSObject *module, const cha
         } \
         if (!JS_DefineProperty(context, module, proto_name, \
                                rval, NULL, NULL, GJS_MODULE_PROP_FLAGS)) \
-            return JS_FALSE; \
+            return JSVAL_NULL; \
     } \
     return rval; \
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]