tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug458158.js (361B)


      1 function run_test() {
      2  var zReader = Cc["@mozilla.org/libjar/zip-reader;1"].createInstance(
      3    Ci.nsIZipReader
      4  );
      5  try {
      6    zReader.open(null);
      7    do_throw("Shouldn't get here!");
      8  } catch (e) {
      9    if (
     10      !(e instanceof Ci.nsIException && e.result == Cr.NS_ERROR_NULL_POINTER)
     11    ) {
     12      throw e;
     13    }
     14    // do nothing, this test passes
     15  }
     16 }