Skip to content

Commit 353e66f

Browse files
lanceMylesBorins
authored andcommitted
test: use arrow function instead of bind
Using an arrow function here eliminates the need to call `bind()`. PR-URL: #17202 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 289ebb1 commit 353e66f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-https-truncate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ const test = common.mustCall(function(res) {
4646
res.on('data', function(chunk) {
4747
bytes += chunk.length;
4848
this.pause();
49-
setTimeout(this.resume.bind(this), 1);
49+
setTimeout(() => { this.resume() }, 1);
5050
});
5151
});

0 commit comments

Comments
 (0)