Skip to content

src: turn buffer type-CHECK into exception

Turn a CHECK() that could be brought to fail using public APIs into throwing an error.

Fixes: https://github.com/nodejs/node/issues/12152

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

stream_base

Merge request reports

Loading