summaryrefslogtreecommitdiffstats
path: root/netwerk/test/httpserver/test/test_errorhandler_exception.js
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/test/httpserver/test/test_errorhandler_exception.js')
-rw-r--r--netwerk/test/httpserver/test/test_errorhandler_exception.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/netwerk/test/httpserver/test/test_errorhandler_exception.js b/netwerk/test/httpserver/test/test_errorhandler_exception.js
index e9cdb0bf4f..5167ed23a8 100644
--- a/netwerk/test/httpserver/test/test_errorhandler_exception.js
+++ b/netwerk/test/httpserver/test/test_errorhandler_exception.js
@@ -78,18 +78,18 @@ function start_multiple_exceptions_500(ch) {
checkStatusLine(ch, 1, 1, 500, "Internal Server Error");
}
-function succeeded(ch, status, data) {
+function succeeded(ch, status) {
Assert.ok(Components.isSuccessCode(status));
}
-function register400Handler(ch) {
+function register400Handler() {
srv.registerErrorHandler(400, throwsException);
}
// PATH HANDLERS
// /throws/exception (and also a 404 and 400 error handler)
-function throwsException(metadata, response) {
+function throwsException() {
throw new Error("this shouldn't cause an exit...");
do_throw("Not reached!"); // eslint-disable-line no-unreachable
}