[gjs/mozjs91: 57/60] Disable Top Level Await for now
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs91: 57/60] Disable Top Level Await for now
- Date: Fri, 6 Aug 2021 05:47:33 +0000 (UTC)
commit 0448ae2a751bc5d8c9a7c45c0f61dbe64a7c2dac
Author: Evan Welsh <contact evanwelsh com>
Date: Sat Jul 10 20:57:04 2021 -0700
Disable Top Level Await for now
gjs/engine.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gjs/engine.cpp b/gjs/engine.cpp
index be0f3622..b1991e7b 100644
--- a/gjs/engine.cpp
+++ b/gjs/engine.cpp
@@ -164,8 +164,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]