From 883e8683b2b67570672958adc626bed9e6176985 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 23 Apr 2021 20:29:21 +0200 Subject: [PATCH] LibJS/Tests: Remove fileName and lineNumber args from ExpectationError This is nono-standard, not supported by our Error implementation and not even used anywhere, so let's just remove it. --- Userland/Libraries/LibJS/Tests/test-common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Tests/test-common.js b/Userland/Libraries/LibJS/Tests/test-common.js index ec54dfddf2..9cec16a2e6 100644 --- a/Userland/Libraries/LibJS/Tests/test-common.js +++ b/Userland/Libraries/LibJS/Tests/test-common.js @@ -20,8 +20,8 @@ console.log = (...args) => { }; class ExpectationError extends Error { - constructor(message, fileName, lineNumber) { - super(message, fileName, lineNumber); + constructor(message) { + super(message); this.name = "ExpectationError"; } }