aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/spawn.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/spawn.test.ts')
-rw-r--r--test/bun.js/spawn.test.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/bun.js/spawn.test.ts b/test/bun.js/spawn.test.ts
index f8694bfcc..bc00964c1 100644
--- a/test/bun.js/spawn.test.ts
+++ b/test/bun.js/spawn.test.ts
@@ -284,8 +284,9 @@ for (let [gcTick, label] of [
var output = "";
var reader = process.stdout!.getReader();
var done = false;
+ var value;
while (!done) {
- var { value, done } = await reader.read();
+ ({ value, done } = await reader.read());
if (value) output += new TextDecoder().decode(value);
}