1
0
Fork 0
firefox/modules/libjar/test/unit/test_bug458158.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
361 B
JavaScript

function run_test() {
var zReader = Cc["@mozilla.org/libjar/zip-reader;1"].createInstance(
Ci.nsIZipReader
);
try {
zReader.open(null);
do_throw("Shouldn't get here!");
} catch (e) {
if (
!(e instanceof Ci.nsIException && e.result == Cr.NS_ERROR_NULL_POINTER)
) {
throw e;
}
// do nothing, this test passes
}
}