Bug Description
In current Node.js v23.11.0, if you await for fetch status but not for the body, and then immediately call process.exit() – Node reports an assertion failure.
Reproducible By
"use strict";
(async function(){
var url = 'https://google.com/';
var code = await fetch(url).then(function(r){
return r.status;
});
console.log(code);
process.exit();
})();
With v23.11.0 it prints:
200
Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file c:\ws\deps\uv\src\win\async.c, line 76
Expected Behavior
When run with v18.18.0, this code correctly prints 200 and nothing more.
Environment
Microsoft Windows NT 10.0.19043.0 x64 (Windows 10 Home 21H1)
Additional context
I've used node.exe from node-v23.11.0-win-x64.zip
Bug Description
In current Node.js v23.11.0, if you await for
fetchstatus but not for the body, and then immediately callprocess.exit()– Node reports an assertion failure.Reproducible By
With
v23.11.0it prints:Expected Behavior
When run with
v18.18.0, this code correctly prints200and nothing more.Environment
Microsoft Windows NT 10.0.19043.0 x64 (Windows 10 Home 21H1)
Additional context
I've used
node.exefromnode-v23.11.0-win-x64.zip