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:24 -0400 |
commit | 8f60e851bf6d95b6c3c5b627bbf2acfadfbf7c6e (patch) | |
tree | 039d7b140bdde04b8f71f31aa84d0870117ecf85 /src | |
parent | d633aa5598151f04dcc9178a197cbf30aca0ada2 (diff) | |
download | polkit-8f60e851bf6d95b6c3c5b627bbf2acfadfbf7c6e.tar.gz |
jsauthority: change how setVersion is called
it's now part of a behaviors method in CompartmentOptions
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp index 7bcfda9..5a5fd5e 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -471,7 +471,7 @@ polkit_backend_js_authority_constructed (GObject *object) { JS::CompartmentOptions compart_opts; - compart_opts.setVersion(JSVERSION_LATEST); + compart_opts.behaviors().setVersion(JSVERSION_LATEST); authority->priv->js_global = JS_NewGlobalObject (authority->priv->cx, &js_global_class, NULL, compart_opts); if (authority->priv->js_global == NULL) |