(state, chunk)
| 3179 | }; |
| 3180 | |
| 3181 | function chunkInvalid(state, chunk) { |
| 3182 | var er = null; |
| 3183 | if (!Buffer.isBuffer(chunk) && |
| 3184 | 'string' !== typeof chunk && |
| 3185 | chunk !== null && |
| 3186 | chunk !== undefined && |
| 3187 | !state.objectMode) { |
| 3188 | er = new TypeError('Invalid non-string/buffer chunk'); |
| 3189 | } |
| 3190 | return er; |
| 3191 | } |
| 3192 | |
| 3193 | |
| 3194 | function onEofChunk(stream, state) { |