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 — lib: replace spread operator with primordials function · nodejs/node@c004aba

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/streams
    • compose.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/streams/compose.js‎

Copy file name to clipboardExpand all lines: lib/internal/streams/compose.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
'use strict';
22

3+
const {
4+
ArrayPrototypeSlice,
5+
} = primordials;
6+
37
const { pipeline } = require('internal/streams/pipeline');
48
const Duplex = require('internal/streams/duplex');
59
const { destroyer } = require('internal/streams/destroy');
@@ -30,7 +34,7 @@ module.exports = function compose(...streams) {
3034
return Duplex.from(streams[0]);
3135
}
3236

33-
const orgStreams = [...streams];
37+
const orgStreams = ArrayPrototypeSlice(streams);
3438

3539
if (typeof streams[0] === 'function') {
3640
streams[0] = Duplex.from(streams[0]);

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.