Skip to content

Commit d207e7e

Browse files
committed
test_runner: remove unused errors
1 parent 062ae6f commit d207e7e

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

doc/api/errors.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,25 +2821,6 @@ An unspecified or non-specific system error has occurred within the Node.js
28212821
process. The error object will have an `err.info` object property with
28222822
additional details.
28232823

2824-
<a id="ERR_TAP_LEXER_ERROR"></a>
2825-
2826-
### `ERR_TAP_LEXER_ERROR`
2827-
2828-
An error representing a failing lexer state.
2829-
2830-
<a id="ERR_TAP_PARSER_ERROR"></a>
2831-
2832-
### `ERR_TAP_PARSER_ERROR`
2833-
2834-
An error representing a failing parser state. Additional information about
2835-
the token causing the error is available via the `cause` property.
2836-
2837-
<a id="ERR_TAP_VALIDATION_ERROR"></a>
2838-
2839-
### `ERR_TAP_VALIDATION_ERROR`
2840-
2841-
This error represents a failed TAP validation.
2842-
28432824
<a id="ERR_TEST_FAILURE"></a>
28442825

28452826
### `ERR_TEST_FAILURE`

lib/internal/errors.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,21 +1739,6 @@ E('ERR_STREAM_WRAP', 'Stream has StringDecoder set or is in objectMode', Error);
17391739
E('ERR_STREAM_WRITE_AFTER_END', 'write after end', Error);
17401740
E('ERR_SYNTHETIC', 'JavaScript Callstack', Error);
17411741
E('ERR_SYSTEM_ERROR', 'A system error occurred', SystemError, HideStackFramesError);
1742-
E('ERR_TAP_LEXER_ERROR', function(errorMsg) {
1743-
hideInternalStackFrames(this);
1744-
return errorMsg;
1745-
}, Error);
1746-
E('ERR_TAP_PARSER_ERROR', function(errorMsg, details, tokenCausedError, source) {
1747-
hideInternalStackFrames(this);
1748-
this.cause = tokenCausedError;
1749-
const { column, line, start, end } = tokenCausedError.location;
1750-
const errorDetails = `${details} at line ${line}, column ${column} (start ${start}, end ${end})`;
1751-
return errorMsg + errorDetails;
1752-
}, SyntaxError);
1753-
E('ERR_TAP_VALIDATION_ERROR', function(errorMsg) {
1754-
hideInternalStackFrames(this);
1755-
return errorMsg;
1756-
}, Error);
17571742
E('ERR_TEST_FAILURE', function(error, failureType) {
17581743
hideInternalStackFrames(this);
17591744
assert(typeof failureType === 'string' || typeof failureType === 'symbol',

0 commit comments

Comments
 (0)