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 164069c

Browse filesBrowse files
kanishk30codebytere
authored andcommitted
test: replace closure with arrow functions
PR-URL: #24440 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent f129e2c commit 164069c
Copy full SHA for 164069c

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-stream-big-push.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-stream-big-push.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ let reads = 0;
3434

3535
function _read() {
3636
if (reads === 0) {
37-
setTimeout(function() {
37+
setTimeout(() => {
3838
r.push(str);
3939
}, 1);
4040
reads++;
@@ -61,7 +61,7 @@ assert.strictEqual(chunk, str);
6161
chunk = r.read();
6262
assert.strictEqual(chunk, null);
6363

64-
r.once('readable', function() {
64+
r.once('readable', () => {
6565
// this time, we'll get *all* the remaining data, because
6666
// it's been added synchronously, as the read WOULD take
6767
// us below the hwm, and so it triggered a _read() again,

0 commit comments

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