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 e67c08b

Browse filesBrowse files
BridgeARMylesBorins
authored andcommitted
errors: remove dead code
This was never falsy, since an array length can only be an integer. PR-URL: #20483 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
1 parent e1170db commit e67c08b
Copy full SHA for e67c08b

File tree

Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed
Open diff view settings
Collapse file

‎lib/internal/errors.js‎

Copy file name to clipboardExpand all lines: lib/internal/errors.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,6 @@ E('ERR_INVALID_ARG_VALUE', (name, value, reason = 'is invalid') => {
870870
}, TypeError, RangeError);
871871
E('ERR_INVALID_ARRAY_LENGTH',
872872
(name, len, actual) => {
873-
internalAssert(typeof actual === 'number', 'actual must be of type number');
874873
return `The array "${name}" (length ${actual}) must be of length ${len}.`;
875874
}, TypeError);
876875
E('ERR_INVALID_ASYNC_ID', 'Invalid %s value: %s', RangeError);

0 commit comments

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