| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Can you store this regular expression in a variable for reuse.
Sorry, something went wrong.
There was a problem hiding this comment.
Updated.
Sorry, something went wrong.
There was a problem hiding this comment.
No need for the RegExp() constructor.
Sorry, something went wrong.
There was a problem hiding this comment.
If all the sendto() calls are supposed to throw before actually sending, and we're verifying the error messages, I don't think binding, listening, and closing the socket is necessary.
Sorry, something went wrong.
|
LGTM if CI is green. I'd leave a nit suggesting being more specific with the identifier name than just errorMessage but I'm having a hard time coming up with something significantly better that isn't probably too long, so ¯\(ツ)/¯. |
Sorry, something went wrong.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/5982/ Tip for the link reference you put in the commit message: You can press Y on your keyboard to get an absolute link to the current revision. That way the line will remain correct even after the file is changed on master. |
Sorry, something went wrong.
|
@targos Thanks :) I modified this commit message. |
Sorry, something went wrong.
Refs: https://github.com/nodejs/node/blob/09ebdf14005cc948529b3f193ad550d5dfded26a/lib/dgram.js#L234 PR-URL: #10901 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Refs: https://github.com/nodejs/node/blob/09ebdf14005cc948529b3f193ad550d5dfded26a/lib/dgram.js#L234 PR-URL: nodejs#10901 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Refs: https://github.com/nodejs/node/blob/09ebdf14005cc948529b3f193ad550d5dfded26a/lib/dgram.js#L234 PR-URL: nodejs#10901 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Refs: https://github.com/nodejs/node/blob/09ebdf14005cc948529b3f193ad550d5dfded26a/lib/dgram.js#L234 PR-URL: nodejs#10901 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Refs: https://github.com/nodejs/node/blob/09ebdf14005cc948529b3f193ad550d5dfded26a/lib/dgram.js#L234 PR-URL: nodejs#10901 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Refs: https://github.com/nodejs/node/blob/09ebdf14005cc948529b3f193ad550d5dfded26a/lib/dgram.js#L234 PR-URL: #10901 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
|
failures on v4.x, did not land === release test-dgram-sendto ===
Path: parallel/test-dgram-sendto
assert.js:361
throw actual;
^
Error: send takes offset and length as args 2 and 3
at Socket.sendto (dgram.js:237:11)
at /Users/mborins/code/node/v4.x/test/parallel/test-dgram-sendto.js:11:10
at _tryBlock (assert.js:320:5)
at _throws (assert.js:339:12)
at Function.assert.throws (assert.js:369:3)
at Object.<anonymous> (/Users/mborins/code/node/v4.x/test/parallel/test-dgram-sendto.js:10:8)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
|
Sorry, something went wrong.
Refs: https://github.com/nodejs/node/blob/09ebdf14005cc948529b3f193ad550d5dfded26a/lib/dgram.js#L234 PR-URL: #10901 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
| Back | FazBrowse Home | New Git URL |
sendto: https://github.com/nodejs/node/blob/master/lib/dgram.js#L234
Checklist
Affected core subsystem(s)
test