diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-23 10:48:44 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-03-28 16:46:36 -0400 |
commit | a667ac2998c77a765ae1a48b7adaf7786cfbd43a (patch) | |
tree | 1d6e8db0d2bc5b77ad0fbc11bc7bebfb76c7ea8f | |
parent | d8b9b44a711a856f88baeaa1e59e2c8ff1e88a59 (diff) | |
download | polkit-a667ac2998c77a765ae1a48b7adaf7786cfbd43a.tar.gz |
jsauthority: JSVAL_IS_STRING (s) to s.isString()
-rw-r--r-- | src/polkitbackend/polkitbackendjsauthority.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp index cc08e73..8cc2c1e 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -1124,7 +1124,7 @@ polkit_backend_js_authority_get_admin_auth_identities (PolkitBackendInteractiveA goto out; } - if (!JSVAL_IS_STRING (rval)) + if (!rval.isString()) { g_warning ("Expected a string"); goto out; @@ -1240,7 +1240,7 @@ polkit_backend_js_authority_check_authorization_sync (PolkitBackendInteractiveAu goto out; } - if (!JSVAL_IS_STRING (rval)) + if (!rval.isString()) { g_warning ("Expected a string"); goto out; @@ -1406,7 +1406,7 @@ js_polkit_spawn (JSContext *cx, JS_ReportErrorUTF8 (cx, "Failed to get element %d", n); goto out; } - if (!JSVAL_IS_STRING (elem_val)) + if (!elem_val.isString()) { JS_ReportErrorUTF8 (cx, "Element %d is not a string", n); goto out; |