[gjs/mozjs91: 3/10] Disable Top Level Await until we support an implicit eventloop




commit 8fe247f39cd089dc16b1a0c5a4e921d06edf8645
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Jul 10 20:57:04 2021 -0700

    Disable Top Level Await until we support an implicit eventloop

 gjs/engine.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gjs/engine.cpp b/gjs/engine.cpp
index 15e3a036..d358a58c 100644
--- a/gjs/engine.cpp
+++ b/gjs/engine.cpp
@@ -167,8 +167,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);
+    JS::ContextOptionsRef(cx).setAsmJS(enable_jit).setTopLevelAwait(false);
 
     uint32_t value = enable_jit ? 1 : 0;
 


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