[gjs/wip/js24] update for changes in options



commit a446a56796f91d0cb72ebaea42c5475ed56d90f4
Author: Tim Lunn <tim feathertop org>
Date:   Sat Sep 28 08:04:07 2013 +1000

    update for changes in options
    
    JSOPTION_STRICT => JSOPTION_EXTRA_WARNINGS
    JSOPTION_ALLOW_XML removed e4x is gnome
    JSOPTION_METHODJIT: removed since JaegerMonkey is gone...

 gjs/context.cpp |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 2bfb91b..f81600d 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -345,8 +345,6 @@ gjs_context_class_init(GjsContextClass *klass)
                                       NULL,
                                       G_TYPE_NONE, 0);
 
-    JS_SetCStringsAreUTF8();
-
     /* For GjsPrivate */
     {
         char *priv_typelib_dir = g_build_filename (PKGLIBDIR, "girepository-1.0", NULL);
@@ -587,11 +585,11 @@ gjs_context_constructor (GType                  type,
      *
      * JSOPTION_STRICT: Report warnings to error reporter function.
      */
-    options_flags = JSOPTION_DONT_REPORT_UNCAUGHT | JSOPTION_STRICT | JSOPTION_ALLOW_XML;
+    options_flags = JSOPTION_DONT_REPORT_UNCAUGHT | JSOPTION_EXTRA_WARNINGS;
 
     if (!g_getenv("GJS_DISABLE_JIT")) {
         gjs_debug(GJS_DEBUG_CONTEXT, "Enabling JIT");
-        options_flags |= JSOPTION_METHODJIT | JSOPTION_TYPE_INFERENCE;
+        options_flags |= JSOPTION_BASELINE | JSOPTION_TYPE_INFERENCE;
     }
 
     JS_SetOptions(js_context->context,


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