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

2 files changed

Lines changed: 19 additions & 34 deletions

File tree

‎doc/api/errors.md‎

Lines changed: 19 additions & 19 deletions
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-
<aid="ERR_TAP_LEXER_ERROR"></a>
2813-
2814-
### `ERR_TAP_LEXER_ERROR`
2815-
2816-
An error representing a failing lexer state.
2817-
2818-
<aid="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-
<aid="ERR_TAP_VALIDATION_ERROR"></a>
2826-
2827-
### `ERR_TAP_VALIDATION_ERROR`
2828-
2829-
This error represents a failed TAP validation.
2830-
28312812
<aid="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+
<aid="ERR_TAP_LEXER_ERROR"></a>
3848+
3849+
### `ERR_TAP_LEXER_ERROR`
3850+
3851+
An error representing a failing lexer state.
3852+
3853+
<aid="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+
<aid="ERR_TAP_VALIDATION_ERROR"></a>
3861+
3862+
### `ERR_TAP_VALIDATION_ERROR`
3863+
3864+
This error represents a failed TAP validation.
3865+
38663866
<aid="ERR_TLS_RENEGOTIATION_FAILED"></a>
38673867

38683868
### `ERR_TLS_RENEGOTIATION_FAILED`

‎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-
returnerrorMsg;
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-
consterrorDetails=`${details} at line ${line}, column ${column} (start ${start}, end ${end})`;
1751-
returnerrorMsg+errorDetails;
1752-
},SyntaxError);
1753-
E('ERR_TAP_VALIDATION_ERROR',function(errorMsg){
1754-
hideInternalStackFrames(this);
1755-
returnerrorMsg;
1756-
},Error);
17571742
E('ERR_TEST_FAILURE',function(error,failureType){
17581743
hideInternalStackFrames(this);
17591744
assert(typeoffailureType==='string'||typeoffailureType==='symbol',

0 commit comments

Comments
 (0)