| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Return undefined from uv binding when no args are provided and do the libuv call with any arg (if provided) to the binding. Fixes: nodejs#44400
|
Fast-track has been requested by @juanarbol. Please 👍 to approve. |
Sorry, something went wrong.
|
Do we need to check err < 0 ? |
Sorry, something went wrong.
Nope, that's why I removed that assertion and return undefined with no args |
Sorry, something went wrong.
There was a problem hiding this comment.
The added test is failing on asan builds because of a memory leak from https://github.com/libuv/libuv/blob/fb76f210eb6f093bc06a2f07646e56851818ccf2/src/uv-common.c#L170.
Sorry, something went wrong.
|
I will close this; at this moment, it does not make any sense in the runtime, and #44421 made something better <3 |
Sorry, something went wrong.
PR-URL: nodejs/node#44421 Refs: nodejs/node#44401 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
PR-URL: nodejs/node#44421 Refs: nodejs/node#44401 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
| Back | FazBrowse Home | New Git URL |
Return undefined from uv binding when no args are provided and do the libuv
call with any arg (if provided) to the binding.
Fixes: #44400
This crash is being provoked by this assertion, using the binding directly is not guarantee that it will be invoked with the expected signature.