Skip to content

stream: allow using `.push()`/`.unshift()` during `once('data')`

Previously, the .push() or .unshift() call would just have jumped straight to emitting a 'data' event, even if there were no listeners, effectively just silently dropping the chunk.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading