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 5cfd4ea

Browse filesBrowse 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 <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 25ff8be commit 5cfd4ea
Copy full SHA for 5cfd4ea

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-https-truncate.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-https-truncate.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ const test = common.mustCall(function(res) {
6767
res.on('data', function(chunk) {
6868
bytes += chunk.length;
6969
this.pause();
70-
setTimeout(this.resume.bind(this), 1);
70+
setTimeout(() => { this.resume() }, 1);
7171
});
7272
});

0 commit comments

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