mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 23:24:37 +00:00
BREAKING: Remove Deno.EOF, use null instead (#4953)
This commit is contained in:
parent
47c2f034e9
commit
678313b176
46 changed files with 329 additions and 325 deletions
|
@ -31,7 +31,7 @@ const tpr = new TextProtoReader(new BufReader(Deno.stdin));
|
|||
while (true) {
|
||||
await Deno.stdout.write(encode("> "));
|
||||
const line = await tpr.readLine();
|
||||
if (line === Deno.EOF) {
|
||||
if (line === null) {
|
||||
break;
|
||||
}
|
||||
if (line === "close") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue