mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibJS: Remove default parameter from assertThrowsError() for now
We don't support these yet, and it broke all the tests. :^)
This commit is contained in:
parent
364ca1f476
commit
f78a92c5a9
Notes:
sideshowbarker
2024-07-19 07:26:06 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f78a92c5a94
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue