test_runner: remove unused errors

PR-URL: https://github.com/nodejs/node/pull/56607
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
pull/49466/merge
Pietro Marchini 2025-01-17 11:34:55 +01:00 committed by GitHub
parent 00d49649da
commit 22f1518d2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 34 deletions

View File

@ -2829,25 +2829,6 @@ An unspecified or non-specific system error has occurred within the Node.js
process. The error object will have an `err.info` object property with
additional details.
<a id="ERR_TAP_LEXER_ERROR"></a>
### `ERR_TAP_LEXER_ERROR`
An error representing a failing lexer state.
<a id="ERR_TAP_PARSER_ERROR"></a>
### `ERR_TAP_PARSER_ERROR`
An error representing a failing parser state. Additional information about
the token causing the error is available via the `cause` property.
<a id="ERR_TAP_VALIDATION_ERROR"></a>
### `ERR_TAP_VALIDATION_ERROR`
This error represents a failed TAP validation.
<a id="ERR_TEST_FAILURE"></a>
### `ERR_TEST_FAILURE`
@ -3883,6 +3864,25 @@ removed: v10.0.0
Used when an attempt is made to use a readable stream that has not implemented
[`readable._read()`][].
<a id="ERR_TAP_LEXER_ERROR"></a>
### `ERR_TAP_LEXER_ERROR`
An error representing a failing lexer state.
<a id="ERR_TAP_PARSER_ERROR"></a>
### `ERR_TAP_PARSER_ERROR`
An error representing a failing parser state. Additional information about
the token causing the error is available via the `cause` property.
<a id="ERR_TAP_VALIDATION_ERROR"></a>
### `ERR_TAP_VALIDATION_ERROR`
This error represents a failed TAP validation.
<a id="ERR_TLS_RENEGOTIATION_FAILED"></a>
### `ERR_TLS_RENEGOTIATION_FAILED`

View File

@ -1739,21 +1739,6 @@ E('ERR_STREAM_WRAP', 'Stream has StringDecoder set or is in objectMode', Error);
E('ERR_STREAM_WRITE_AFTER_END', 'write after end', Error);
E('ERR_SYNTHETIC', 'JavaScript Callstack', Error);
E('ERR_SYSTEM_ERROR', 'A system error occurred', SystemError, HideStackFramesError);
E('ERR_TAP_LEXER_ERROR', function(errorMsg) {
hideInternalStackFrames(this);
return errorMsg;
}, Error);
E('ERR_TAP_PARSER_ERROR', function(errorMsg, details, tokenCausedError, source) {
hideInternalStackFrames(this);
this.cause = tokenCausedError;
const { column, line, start, end } = tokenCausedError.location;
const errorDetails = `${details} at line ${line}, column ${column} (start ${start}, end ${end})`;
return errorMsg + errorDetails;
}, SyntaxError);
E('ERR_TAP_VALIDATION_ERROR', function(errorMsg) {
hideInternalStackFrames(this);
return errorMsg;
}, Error);
E('ERR_TEST_FAILURE', function(error, failureType) {
hideInternalStackFrames(this);
assert(typeof failureType === 'string' || typeof failureType === 'symbol',