Commit Graph

2 Commits

Author SHA1 Message Date
Robert Nagy
1f209129c7 stream: throw invalid argument errors
Logic errors that do not depend on stream
state should throw instead of invoke callback
and emit error.

PR-URL: https://github.com/nodejs/node/pull/31831
Refs: https://github.com/nodejs/node/pull/31818
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-02-25 12:07:30 +01:00
Robert Nagy
6ea51bc491 test: add test for writable.write() argument types
PR-URL: https://github.com/nodejs/node/pull/29746
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-10-03 12:30:39 -07:00