summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_bug1170311.js
blob: 0c58c75d79fb913a2ca3ca415c7aa677574cff2b (plain)
1
2
3
4
5
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");
}