Skip to content

Commit

Permalink
fixup! add err
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev authored Oct 16, 2024
1 parent 1ada6a0 commit 6bb14e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,7 @@ function defineDefaultCommands(repl) {

function Recoverable(err) {
if (!(this instanceof Recoverable))
return deprecateInstantation(Recoverable, 'DEP0185');
return deprecateInstantation(Recoverable, 'DEP0185', err);
this.err = err;
}
ObjectSetPrototypeOf(Recoverable.prototype, SyntaxErrorPrototype);
Expand Down

0 comments on commit 6bb14e5

Please sign in to comment.