diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-23 15:22:59 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-04-03 10:49:25 -0400 |
commit | 32347fb54b27de7a3ac3216ac306b86e69ce572b (patch) | |
tree | f687b8746019186a67b6d13f8fe5aac5b681c986 | |
parent | 4ad5a4aaf77d1763526ae85c29986160473645f7 (diff) | |
download | polkit-32347fb54b27de7a3ac3216ac306b86e69ce572b.tar.gz |
jsauthority: call JS_InitSelfHostedCode
This is now required
Signed-off-by: Ray Strode <rstrode@redhat.com>
https://bugs.freedesktop.org/show_bug.cgi?id=105865
-rw-r--r-- | src/polkitbackend/polkitbackendjsauthority.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp index 7e98adb..9fe151b 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -458,6 +458,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. */ |