Skip to content

Commit 22f1518

Browse files
authored
test_runner: remove unused errors
PR-URL: #56607 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
1 parent 00d4964 commit 22f1518

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
@@ -2829,25 +2829,6 @@ An unspecified or non-specific system error has occurred within the Node.js
28292829
process. The error object will have an `err.info` object property with
28302830
additional details.
28312831

2832-
<a id="ERR_TAP_LEXER_ERROR"></a>
2833-
2834-
### `ERR_TAP_LEXER_ERROR`
2835-
2836-
An error representing a failing lexer state.
2837-
2838-
<a id="ERR_TAP_PARSER_ERROR"></a>
2839-
2840-
### `ERR_TAP_PARSER_ERROR`
2841-
2842-
An error representing a failing parser state. Additional information about
2843-
the token causing the error is available via the `cause` property.
2844-
2845-
<a id="ERR_TAP_VALIDATION_ERROR"></a>
2846-
2847-
### `ERR_TAP_VALIDATION_ERROR`
2848-
2849-
This error represents a failed TAP validation.
2850-
28512832
<a id="ERR_TEST_FAILURE"></a>
28522833

28532834
### `ERR_TEST_FAILURE`
@@ -3883,6 +3864,25 @@ removed: v10.0.0
38833864
Used when an attempt is made to use a readable stream that has not implemented
38843865
[`readable._read()`][].
38853866

3867+
<a id="ERR_TAP_LEXER_ERROR"></a>
3868+
3869+
### `ERR_TAP_LEXER_ERROR`
3870+
3871+
An error representing a failing lexer state.
3872+
3873+
<a id="ERR_TAP_PARSER_ERROR"></a>
3874+
3875+
### `ERR_TAP_PARSER_ERROR`
3876+
3877+
An error representing a failing parser state. Additional information about
3878+
the token causing the error is available via the `cause` property.
3879+
3880+
<a id="ERR_TAP_VALIDATION_ERROR"></a>
3881+
3882+
### `ERR_TAP_VALIDATION_ERROR`
3883+
3884+
This error represents a failed TAP validation.
3885+
38863886
<a id="ERR_TLS_RENEGOTIATION_FAILED"></a>
38873887

38883888
### `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)