fix(node/readline): close input when readline interface closes

This commit is contained in:
Don Isaac
2024-12-06 17:10:13 -08:00
parent cc72c90ae6
commit f1e0ff2c83

View File

@@ -1583,6 +1583,7 @@ var _Interface = class Interface extends InterfaceConstructor {
this[kSetRawMode](false);
}
this.closed = true;
this.input.close();
this.emit("close");
}