1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

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.
This commit is contained in:
Linus Groh 2021-04-23 20:29:21 +02:00
parent d400be05ec
commit 883e8683b2

View file

@ -20,8 +20,8 @@ console.log = (...args) => {
}; };
class ExpectationError extends Error { class ExpectationError extends Error {
constructor(message, fileName, lineNumber) { constructor(message) {
super(message, fileName, lineNumber); super(message);
this.name = "ExpectationError"; this.name = "ExpectationError";
} }
} }