GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: replace closure with arrow functions · nodejs/node@3bfa953

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-stream-big-push.js
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.