diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-22 13:00:33 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-03-28 16:43:52 -0400 |
commit | ca9017061e1d0367d445c1cc5c2456695ca80a89 (patch) | |
tree | b1fd2e068d526ec73d90c79b6926424fe3eb6c3c | |
parent | 6b5581b4edbc3a8202a9b01190d3ae51c7b28e5f (diff) | |
download | polkit-ca9017061e1d0367d445c1cc5c2456695ca80a89.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.
-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 67dd266..480b0aa 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -465,9 +465,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); |