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:51 -0400 |
commit | 1165181a21ab82d7c57299078fe768a7b8215e4f (patch) | |
tree | 0b9865e020a086372e060b37194589a1e3d3e771 | |
parent | dc072ed30bf27661d65ae1883bb3ed0a67e0a966 (diff) | |
download | polkit-1165181a21ab82d7c57299078fe768a7b8215e4f.tar.gz |
jsauthority: change how setVersion is called
it's now part of a behaviors method in CompartmentOptions
-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 235d613..c75b396 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -472,7 +472,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) |