Commit 1ac9c65e authored by Ray Strode's avatar Ray Strode

jsauthority: change how JIT is disabled

JS_SetOptions seems to be replaced with JS::ContextOptionsRef now.
Also, disabling the JIT seems to be three options now instead of just
Signed-off-by: Ray Strode's avatarRay Strode <>
parent 32347fb5
......@@ -464,9 +464,10 @@ polkit_backend_js_authority_constructed (GObject *object)
/* 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_SetOptions (authority->priv->cx,
JS::ContextOptionsRef (authority->priv->cx)
.setIon (FALSE)
.setBaseline (FALSE)
.setAsmJS (FALSE);
JS_SetErrorReporter(authority->priv->cx, report_error);
JS_SetContextPrivate (authority->priv->cx, authority);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment