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 c77fc71

Browse filesBrowse files
TrottMyles Borins
authored andcommitted
test: remove unused var from test-assert.js
`aethrow` is defined as a function returned from makeBlock() but the function is never used and the call to makeBlock() does not run any tests. PR-URL: #4405 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 53dcbb6 commit c77fc71
Copy full SHA for c77fc71

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-assert.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-assert.js
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,6 @@ assert.throws(makeBlock(a.deepStrictEqual, new Boolean(true), {}),
271271
function thrower(errorConstructor) {
272272
throw new errorConstructor('test');
273273
}
274-
var aethrow = makeBlock(thrower, a.AssertionError);
275-
aethrow = makeBlock(thrower, a.AssertionError);
276274

277275
// the basic calls work
278276
assert.throws(makeBlock(thrower, a.AssertionError),

0 commit comments

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