Commit a667ac29 authored by Ray Strode's avatar Ray Strode

jsauthority: JSVAL_IS_STRING (s) to s.isString()

parent d8b9b44a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment