summaryrefslogtreecommitdiff
path: root/src/polkitbackend/polkitbackendjsauthority.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/polkitbackend/polkitbackendjsauthority.cpp')
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
index ef1a900..9746c47 100644
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
@@ -457,13 +457,10 @@ polkit_backend_js_authority_constructed (GObject *object)
if (!JS::InitSelfHostedCode (authority->priv->cx))
goto fail;
- /* TODO: JIT'ing doesn't work will with killing runaway scripts... I think
- * this is just a SpiderMonkey bug. So disable the JIT for now.
- */
JS::ContextOptionsRef (authority->priv->cx)
- .setIon (FALSE)
- .setBaseline (FALSE)
- .setAsmJS (FALSE);
+ .setIon (TRUE)
+ .setBaseline (TRUE)
+ .setAsmJS (TRUE);
JS::SetWarningReporter(authority->priv->cx, report_error);
JS_SetContextPrivate (authority->priv->cx, authority);