mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-09 09:48:15 +08:00
A nested callback lowered inside an outer error path passed the absent Buffer on into a Buffer slot even when its own operation succeeded, so a callee such as (err, out) => cb(err, out) received undefined instead of the result. The forwarded value is now the Buffer when there is one. A named function expression passed to zlib can call itself, and a function expression can reach itself through arguments.callee, with an error and a Buffer. Such functions no longer count as called only by the adapter, so their success copy keeps the runtime error checks instead of folding them to the success case.