| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9910860 commit 4536128
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1040,11 +1040,6 @@ function copyFromBuffer(n, list) { | |||
| 1040 | 1040 | function endReadable(stream) { | |
| 1041 | 1041 | var state = stream._readableState; | |
| 1042 | 1042 | ||
| 1043 | - // If we get here before consuming all the bytes, then that is a | ||
| 1044 | - // bug in node. Should never happen. | ||
| 1045 | - if (state.length > 0) | ||
| 1046 | - throw new Error('"endReadable()" called on non-empty stream'); | ||
| 1047 | - | ||
| 1048 | 1043 | if (!state.endEmitted) { | |
| 1049 | 1044 | state.ended = true; | |
| 1050 | 1045 | process.nextTick(endReadableNT, state, stream); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments