Bug 700195 - Propagate error in netscape_security_isPrivilegeEnabled. r=bholley

--HG--
extra : rebase_source : bcf741d0e8aa5838719610d5ae966915c926e489
This commit is contained in:
Steve Fink 2011-11-18 10:54:58 -08:00
Родитель 903b7da5ce
Коммит 804860891e
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -144,6 +144,8 @@ netscape_security_isPrivilegeEnabled(JSContext *cx, uintN argc, jsval *vp)
if (NS_FAILED(rv))
result = JS_FALSE;
}
} else {
return JS_FALSE;
}
JS_SET_RVAL(cx, vp, BOOLEAN_TO_JSVAL(result));
return JS_TRUE;