summaryrefslogtreecommitdiffstats
path: root/modules/libjar/test/unit/test_bug453254.js
blob: 150a15daa3325dd09ff7e03448e34ce74bb801f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function run_test() {
  const zipCache = Cc["@mozilla.org/libjar/zip-reader-cache;1"].createInstance(
    Ci.nsIZipReaderCache
  );
  zipCache.init(1024);
  try {
    zipCache.getZip(null);
    do_throw("Shouldn't get here!");
  } catch (e) {
    if (
      !(e instanceof Ci.nsIException && e.result == Cr.NS_ERROR_INVALID_POINTER)
    ) {
      throw e;
    }
    // do nothing, this test passes
  }
}