tenfourfox/js/xpconnect/tests/unit/test_bug1170311.js
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

6 lines
263 B
JavaScript

const Cu = Components.utils;
function run_test() {
do_check_throws_nsIException(() => Cu.getObjectPrincipal({}).equals(null), "NS_ERROR_ILLEGAL_VALUE");
do_check_throws_nsIException(() => Cu.getObjectPrincipal({}).subsumes(null), "NS_ERROR_ILLEGAL_VALUE");
}