소스 검색

fix peek() without cb not returning the object

Herbert Vojčík 10 년 전
부모
커밋
2a013b3770
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/usim.js

+ 1 - 1
lib/usim.js

@@ -36,7 +36,7 @@
     };
 
     uSim.prototype.peek = function (cb) {
-        this.peekUntil(Infinity, cb);
+        return this.peekUntil(Infinity, cb);
     };
 
     uSim.prototype.streamUntil = function (limit, cb) {