mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +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:
parent
d400be05ec
commit
883e8683b2
1 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue