Skip to content

Commit 07e13a8

Browse files
aredridelljharb
authored andcommitted
[eslint] Fix leaking variable in tests
1 parent 03529a9 commit 07e13a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/promise_fail.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tap.test('callback returning rejected promise should cause that test (and only t
1717
return tt.pass('the test file indicated it should be skipped');
1818
}
1919

20-
strippedString = stripFullStack(rowsString);
20+
var strippedString = stripFullStack(rowsString);
2121

2222
// hack for consistency across all versions of node
2323
// some versions produce a longer stack trace for some reason
@@ -60,7 +60,7 @@ tap.test('subtest callback returning rejected promise should cause that subtest
6060
return tt.pass('the test file indicated it should be skipped');
6161
}
6262

63-
strippedString = stripFullStack(rowsString);
63+
var strippedString = stripFullStack(rowsString);
6464

6565
// hack for consistency across all versions of node
6666
// some versions produce a longer stack trace for some reason

0 commit comments

Comments
 (0)