diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-22 13:00:33 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-04-03 14:16:26 -0400 |
commit | fa2768262593023df6b6ad04bca8174792385325 (patch) | |
tree | 5dd73be7bb6b55c6f40796c98aecde1705100778 /src | |
parent | c348eef7b10ad896280fe8399183846ec8ab4ceb (diff) | |
download | polkit-fa2768262593023df6b6ad04bca8174792385325.tar.gz |
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
one.
Signed-off-by: Ray Strode <rstrode@redhat.com>
https://bugs.freedesktop.org/show_bug.cgi?id=105865
Diffstat (limited to 'src')
-rw-r--r-- | src/polkitbackend/polkitbackendjsauthority.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp index 9fe151b..394e743 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -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, - JSOPTION_VAROBJFIX - /* | JSOPTION_JIT | JSOPTION_METHODJIT*/); + JS::ContextOptionsRef (authority->priv->cx) + .setIon (FALSE) + .setBaseline (FALSE) + .setAsmJS (FALSE); JS_SetErrorReporter(authority->priv->cx, report_error); JS_SetContextPrivate (authority->priv->cx, authority); |