| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Since the error message is changing anyway, can you s/buffer/Buffer here to make it consistent with the other error messages thrown in this module?
Sorry, something went wrong.
There was a problem hiding this comment.
@jasnell Right, done!
Sorry, something went wrong.
|
CI: https://ci.nodejs.org/job/node-test-commit/8656/ |
Sorry, something went wrong.
| const port = client.address().port; | ||
| client.send(toSend[0], 0, toSend[0].length, port); | ||
| client.send(toSend[1], port); | ||
| client.send(new Uint8Array([...toSend[1]]), port); |
There was a problem hiding this comment.
This is missing test cases for socket.send(u8a, offset, length, port) and socket.send(buffer, port).
Also, is new Uint8Array([...toSend[1]]) here the same as new Uint8Array(toSend[1])?
Sorry, something went wrong.
There was a problem hiding this comment.
@joyeecheung Right, thanks for pointing that out. I’ve updated the file so all the tests are run twice now, once with the original input types and once with Uint8Arrays.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes: #11954
Refs: #11961
Checklist
Affected core subsystem(s)