diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-01-08 04:27:34 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-01-08 04:32:40 +0100 |
commit | ad6769fc92ed21c9d4a62719ed9d46538dc5a73b (patch) | |
tree | b1b3916dec11564f5d2069cc333d8515835c85ae /deps/npm/man/man3/run-script.3 | |
parent | 872cb0d7fabdb23ad3378d28103228bc58218235 (diff) | |
download | node-new-ad6769fc92ed21c9d4a62719ed9d46538dc5a73b.tar.gz |
dgram: don't assert on send('string')
Raise a TypeError when the argument to send() or sendto() is anything
but a Buffer.
Fixes the following assertion:
$ node -e 'require("dgram").createSocket("udp4").send("BAM")'
node: ../../src/udp_wrap.cc:220: static v8::Handle<v8::Value>
node::UDPWrap::DoSend(const v8::Arguments&, int): Assertion
`Buffer::HasInstance(args[0])' failed.
Aborted (core dumped)
Fixes #4496.
Diffstat (limited to 'deps/npm/man/man3/run-script.3')
0 files changed, 0 insertions, 0 deletions