From f78a92c5a9425c9b687265615503c066b81f796c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 20 Apr 2020 20:33:21 +0200 Subject: LibJS: Remove default parameter from assertThrowsError() for now We don't support these yet, and it broke all the tests. :^) --- Libraries/LibJS/Tests/test-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries') diff --git a/Libraries/LibJS/Tests/test-common.js b/Libraries/LibJS/Tests/test-common.js index cdc1336539..890862e747 100644 --- a/Libraries/LibJS/Tests/test-common.js +++ b/Libraries/LibJS/Tests/test-common.js @@ -36,7 +36,7 @@ function assertNotReached() { * @param {string} [options.name] Expected error name * @param {string} [options.message] Expected error message */ -function assertThrowsError(testFunction, options = {}) { +function assertThrowsError(testFunction, options) { try { testFunction(); assertNotReached(); -- cgit v1.2.3