Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: replace anonymous closure functions with arrow functions
  • Loading branch information
kanishk30 committed Nov 17, 2018
commit 12d872b7c8f010aca17acc1ac90f8586949de055
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