Skip to content

Commit

Permalink
test: replace closure with arrow functions
Browse files Browse the repository at this point in the history
PR-URL: #24440
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
kanishk30 authored and codebytere committed Jan 29, 2019
1 parent f129e2c commit 164069c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-stream-big-push.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let reads = 0;

function _read() {
if (reads === 0) {
setTimeout(function() {
setTimeout(() => {
r.push(str);
}, 1);
reads++;
Expand All @@ -61,7 +61,7 @@ assert.strictEqual(chunk, str);
chunk = r.read();
assert.strictEqual(chunk, null);

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

0 comments on commit 164069c

Please sign in to comment.