Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e67a849

Browse filesBrowse files
pmarchinimarco-ippolito
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 0a009a5 commit e67a849
Copy full SHA for e67a849

File tree

Expand file treeCollapse file tree

2 files changed

+19
-34
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+19
-34
lines changed
Open diff view settings
Collapse file

‎doc/api/errors.md‎

Copy file name to clipboardExpand all lines: doc/api/errors.md
+19-19Lines changed: 19 additions & 19 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2786,25 +2786,6 @@ An unspecified or non-specific system error has occurred within the Node.js
27862786
process. The error object will have an `err.info` object property with
27872787
additional details.
27882788

2789-
<a id="ERR_TAP_LEXER_ERROR"></a>
2790-
2791-
### `ERR_TAP_LEXER_ERROR`
2792-
2793-
An error representing a failing lexer state.
2794-
2795-
<a id="ERR_TAP_PARSER_ERROR"></a>
2796-
2797-
### `ERR_TAP_PARSER_ERROR`
2798-
2799-
An error representing a failing parser state. Additional information about
2800-
the token causing the error is available via the `cause` property.
2801-
2802-
<a id="ERR_TAP_VALIDATION_ERROR"></a>
2803-
2804-
### `ERR_TAP_VALIDATION_ERROR`
2805-
2806-
This error represents a failed TAP validation.
2807-
28082789
<a id="ERR_TEST_FAILURE"></a>
28092790

28102791
### `ERR_TEST_FAILURE`
@@ -3608,6 +3589,25 @@ removed: v10.0.0
36083589
Used when an attempt is made to use a readable stream that has not implemented
36093590
[`readable._read()`][].
36103591

3592+
<a id="ERR_TAP_LEXER_ERROR"></a>
3593+
3594+
### `ERR_TAP_LEXER_ERROR`
3595+
3596+
An error representing a failing lexer state.
3597+
3598+
<a id="ERR_TAP_PARSER_ERROR"></a>
3599+
3600+
### `ERR_TAP_PARSER_ERROR`
3601+
3602+
An error representing a failing parser state. Additional information about
3603+
the token causing the error is available via the `cause` property.
3604+
3605+
<a id="ERR_TAP_VALIDATION_ERROR"></a>
3606+
3607+
### `ERR_TAP_VALIDATION_ERROR`
3608+
3609+
This error represents a failed TAP validation.
3610+
36113611
<a id="ERR_TLS_RENEGOTIATION_FAILED"></a>
36123612

36133613
### `ERR_TLS_RENEGOTIATION_FAILED`
Collapse file

‎lib/internal/errors.js‎

Copy file name to clipboardExpand all lines: lib/internal/errors.js
-15Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,21 +1772,6 @@ E('ERR_STREAM_WRAP', 'Stream has StringDecoder set or is in objectMode', Error);
17721772
E('ERR_STREAM_WRITE_AFTER_END', 'write after end', Error);
17731773
E('ERR_SYNTHETIC', 'JavaScript Callstack', Error);
17741774
E('ERR_SYSTEM_ERROR', 'A system error occurred', SystemError, HideStackFramesError);
1775-
E('ERR_TAP_LEXER_ERROR', function(errorMsg) {
1776-
hideInternalStackFrames(this);
1777-
return errorMsg;
1778-
}, Error);
1779-
E('ERR_TAP_PARSER_ERROR', function(errorMsg, details, tokenCausedError, source) {
1780-
hideInternalStackFrames(this);
1781-
this.cause = tokenCausedError;
1782-
const { column, line, start, end } = tokenCausedError.location;
1783-
const errorDetails = `${details} at line ${line}, column ${column} (start ${start}, end ${end})`;
1784-
return errorMsg + errorDetails;
1785-
}, SyntaxError);
1786-
E('ERR_TAP_VALIDATION_ERROR', function(errorMsg) {
1787-
hideInternalStackFrames(this);
1788-
return errorMsg;
1789-
}, Error);
17901775
E('ERR_TEST_FAILURE', function(error, failureType) {
17911776
hideInternalStackFrames(this);
17921777
assert(typeof failureType === 'string' || typeof failureType === 'symbol',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.