mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
Cross-platform JavaScript runtime environment
https://nodejs.org/
2b91256c61
Problem: Since stream.pipe() is registering it's own error handlers on the source and destination stream, it needs to replicate the EventEmitter 'error' emitting semantics of throwing an error if there are no other listeners. However, there was a off-by-one error because the check for remaining listeners was done after cleanup() which means the pipe's own listener was no longer included. This would cause 'error' events on either the dest or the source to throw if there was one other error listener, and while swallowing the 'error' event if there was no other listener. Solution: I added a test demonstrating the two issues and fixed the problem by correcting the off-by-one error. Fixes #1095. |
||
---|---|---|
benchmark | ||
cmake | ||
deps | ||
doc | ||
lib | ||
src | ||
test | ||
tools | ||
.gitignore | ||
AUTHORS | ||
ChangeLog | ||
CMakeLists.txt | ||
config.h.cmake | ||
configure | ||
CTestConfig.cmake | ||
LICENSE | ||
Makefile | ||
Makefile.cmake | ||
README.cmake | ||
README.md | ||
TODO | ||
TODO.win32 | ||
wscript |
Evented I/O for V8 javascript.
To build:
./configure
make
make install
To run the tests:
make test
To build the documentation:
make doc
To read the documentation:
man doc/node.1