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
commit 883e8683b2
Notes: sideshowbarker 2024-07-18 19:11:15 +09:00

View file

@ -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";
}
}