summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2018-03-23 10:48:44 -0400
committerRay Strode <rstrode@redhat.com>2018-04-03 10:49:50 -0400
commit04e696c3c812834ba07fb3673da4ee08e8106b0d (patch)
treee75fbb056efdbb9bda21d541cf3c1e885b53ddef
parent2fe43b5d3bb8f5277ae647b278363f9bb8e69083 (diff)
downloadpolkit-04e696c3c812834ba07fb3673da4ee08e8106b0d.tar.gz
jsauthority: JSVAL_IS_STRING (s) to s.isString()
Signed-off-by: Ray Strode <rstrode@redhat.com> https://bugs.freedesktop.org/show_bug.cgi?id=105865
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
index bc33a59..71394d7 100644
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
@@ -1129,7 +1129,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;
@@ -1245,7 +1245,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;
@@ -1411,7 +1411,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;