[gjs/mozjs102: 6/14] engine: Adjust JS engine options for mozjs102




commit 1c723714bad2de9e0853a1d1b69f0b8912206d72
Author: Evan Welsh <contact evanwelsh com>
Date:   Fri Jul 22 12:39:44 2022 -0700

    engine: Adjust JS engine options for mozjs102
    
    All of these options are always enabled in mozjs102.

 gjs/engine.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/gjs/engine.cpp b/gjs/engine.cpp
index 305a628b8..f67f99738 100644
--- a/gjs/engine.cpp
+++ b/gjs/engine.cpp
@@ -168,12 +168,7 @@ JSContext* gjs_create_js_context(GjsContextPrivate* uninitialized_gjs) {
     if (enable_jit) {
         gjs_debug(GJS_DEBUG_CONTEXT, "Enabling JIT");
     }
-    JS::ContextOptionsRef(cx)
-        .setAsmJS(enable_jit)
-        .setTopLevelAwait(true)
-        .setClassStaticBlocks(true)
-        .setPrivateClassFields(true)
-        .setPrivateClassMethods(true);
+    JS::ContextOptionsRef(cx).setAsmJS(enable_jit);
 
     uint32_t value = enable_jit ? 1 : 0;
 


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