summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2018-03-23 15:22:59 -0400
committerRay Strode <rstrode@redhat.com>2018-03-28 16:43:52 -0400
commit6b5581b4edbc3a8202a9b01190d3ae51c7b28e5f (patch)
tree02df13de23f387433f8ddf5012678731890f721e
parent5067c8305afe838cf89aa646e1b718800b94179c (diff)
downloadpolkit-6b5581b4edbc3a8202a9b01190d3ae51c7b28e5f.tar.gz
jsauthority: call JS_InitSelfHostedCode
This is now required
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
index 0016f31..67dd266 100644
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
@@ -459,6 +459,9 @@ polkit_backend_js_authority_constructed (GObject *object)
if (authority->priv->cx == NULL)
goto fail;
+ 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.
*/