(state, chunk)
| 24546 | }; |
| 24547 | |
| 24548 | function chunkInvalid(state, chunk) { |
| 24549 | var er = null; |
| 24550 | if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) { |
| 24551 | er = new TypeError('Invalid non-string/buffer chunk'); |
| 24552 | } |
| 24553 | return er; |
| 24554 | } |
| 24555 | |
| 24556 | function onEofChunk(stream, state) { |
| 24557 | if (state.ended) return; |