mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Introduce `ERR_TRAILING_JUNK_AFTER_STREAM_END` error to handle unexpected data after the end of a compressed stream. This ensures proper error reporting when decompressing deflate or gzip streams with trailing junk. Added tests to verify the behavior. Fixes: https://github.com/nodejs/node/issues/58247 PR-URL: https://github.com/nodejs/node/pull/58316 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>