1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-07 06:46:59 -05:00

add debug log

This commit is contained in:
Yoshiya Hinosawa 2024-11-18 23:35:36 +09:00
parent 25a9c93745
commit 80ab756969
No known key found for this signature in database
GPG key ID: 9017DB4559488785

View file

@ -297,12 +297,14 @@ export class LibuvStreamWrap extends HandleWrap {
}
override _onClose(): number {
console.log("LibuvStreamWrap.prototype._onClose");
let status = 0;
this.#reading = false;
try {
this[kStreamBaseField]?.close();
} catch {
} catch (e) {
console.log(e);
status = codeMap.get("ENOTCONN")!;
}