summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-04-23 20:29:21 +0200
committerLinus Groh <mail@linusgroh.de>2021-04-23 20:30:52 +0200
commit883e8683b2b67570672958adc626bed9e6176985 (patch)
tree965e98c9460e1625db5f3372ec6186e0048318a4 /Userland/Libraries/LibJS
parentd400be05ecaa14095eddf531e123b5e676187cb6 (diff)
downloadserenity-883e8683b2b67570672958adc626bed9e6176985.zip
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.
Diffstat (limited to 'Userland/Libraries/LibJS')
-rw-r--r--Userland/Libraries/LibJS/Tests/test-common.js4
1 files 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";
}
}