From 779cf081550c4fdb734012010300270afdd2bbcb Mon Sep 17 00:00:00 2001 From: Benjamin Fischer <61995275+c4spar@users.noreply.github.com> Date: Sat, 28 Sep 2024 22:46:40 +0200 Subject: [PATCH] fix(internal): resolve null instead of returning null (#752) --- internal/runtime/read.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/runtime/read.ts b/internal/runtime/read.ts index 94510ed1..d1a1e716 100644 --- a/internal/runtime/read.ts +++ b/internal/runtime/read.ts @@ -17,7 +17,7 @@ export function read(data: Uint8Array): Promise { const buffer = process.stdin.read(); if (buffer === null) { - return null; + return resolve(null); } for (let i = 0; i < buffer.length; i++) {