[gjs/mozjs102: 52/59] engine: Adjust JS engine options for mozjs102
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs102: 52/59] engine: Adjust JS engine options for mozjs102
- Date: Sat, 23 Jul 2022 20:58:05 +0000 (UTC)
commit 3d05c6589c26405186290aad26b8ed63bc49e5ec
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 16d84cc19..332d5064c 100644
--- a/gjs/engine.cpp
+++ b/gjs/engine.cpp
@@ -167,12 +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)
- .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]