src: add missing length argument to send comment
The list.length argument is missing from the comment and just adding this for clarity. PR-URL: https://github.com/nodejs/node/pull/8816 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
This commit is contained in:
parent
b838e5ff86
commit
6e62b71688
@ -255,7 +255,7 @@ void UDPWrap::DoSend(const FunctionCallbackInfo<Value>& args, int family) {
|
||||
args.Holder(),
|
||||
args.GetReturnValue().Set(UV_EBADF));
|
||||
|
||||
// send(req, list, port, address, hasCallback)
|
||||
// send(req, list, list.length, port, address, hasCallback)
|
||||
CHECK(args[0]->IsObject());
|
||||
CHECK(args[1]->IsArray());
|
||||
CHECK(args[2]->IsUint32());
|
||||
|
Loading…
x
Reference in New Issue
Block a user