소스 검색

Minor bugfix.

Eugene Lazutkin 7 년 전
부모
커밋
1007bf4ebe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -87,7 +87,7 @@ class Chain extends Duplex {
 
     this.streams = fns
       .filter(fn => fn)
-      .map((fn, index) => {
+      .map((fn, index, fns) => {
         if (typeof fn === 'function' || fn instanceof Array) return Chain.convertToTransform(fn);
         if (
           fn instanceof Duplex ||