summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-20 20:33:21 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-20 20:33:21 +0200
commitf78a92c5a9425c9b687265615503c066b81f796c (patch)
treef256c9b4cfa0ffecd741bc2a64ee85e04c2d8426
parent364ca1f4768cd23e554b418781760d31b23ea643 (diff)
downloadserenity-f78a92c5a9425c9b687265615503c066b81f796c.zip
LibJS: Remove default parameter from assertThrowsError() for now
We don't support these yet, and it broke all the tests. :^)
-rw-r--r--Libraries/LibJS/Tests/test-common.js2
1 files changed, 1 insertions, 1 deletions
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();