Skip to content

Commit f97cd5b

Browse files
pmarchiniaduh95
authored andcommitted
test_runner: remove unused errors
PR-URL: #56607 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
1 parent 67f39b5 commit f97cd5b

File tree

2 files changed

+19
-34
lines changed

2 files changed

+19
-34
lines changed

doc/api/errors.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -2809,25 +2809,6 @@ An unspecified or non-specific system error has occurred within the Node.js
28092809
process. The error object will have an `err.info` object property with
28102810
additional details.
28112811

2812-
<a id="ERR_TAP_LEXER_ERROR"></a>
2813-
2814-
### `ERR_TAP_LEXER_ERROR`
2815-
2816-
An error representing a failing lexer state.
2817-
2818-
<a id="ERR_TAP_PARSER_ERROR"></a>
2819-
2820-
### `ERR_TAP_PARSER_ERROR`
2821-
2822-
An error representing a failing parser state. Additional information about
2823-
the token causing the error is available via the `cause` property.
2824-
2825-
<a id="ERR_TAP_VALIDATION_ERROR"></a>
2826-
2827-
### `ERR_TAP_VALIDATION_ERROR`
2828-
2829-
This error represents a failed TAP validation.
2830-
28312812
<a id="ERR_TEST_FAILURE"></a>
28322813

28332814
### `ERR_TEST_FAILURE`
@@ -3863,6 +3844,25 @@ removed: v10.0.0
38633844
Used when an attempt is made to use a readable stream that has not implemented
38643845
[`readable._read()`][].
38653846

3847+
<a id="ERR_TAP_LEXER_ERROR"></a>
3848+
3849+
### `ERR_TAP_LEXER_ERROR`
3850+
3851+
An error representing a failing lexer state.
3852+
3853+
<a id="ERR_TAP_PARSER_ERROR"></a>
3854+
3855+
### `ERR_TAP_PARSER_ERROR`
3856+
3857+
An error representing a failing parser state. Additional information about
3858+
the token causing the error is available via the `cause` property.
3859+
3860+
<a id="ERR_TAP_VALIDATION_ERROR"></a>
3861+
3862+
### `ERR_TAP_VALIDATION_ERROR`
3863+
3864+
This error represents a failed TAP validation.
3865+
38663866
<a id="ERR_TLS_RENEGOTIATION_FAILED"></a>
38673867

38683868
### `ERR_TLS_RENEGOTIATION_FAILED`

lib/internal/errors.js

-15
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)