mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
* Fix #5177 * Fix #5175 * make most globals deletable/overridable * not done * cool * a * done * fix test * oops * yippee
17 lines
303 B
TypeScript
17 lines
303 B
TypeScript
async function readInput() {
|
|
let items = [];
|
|
for await (const line of console) {
|
|
if (line == "break") {
|
|
break;
|
|
}
|
|
items.push(line);
|
|
}
|
|
return items;
|
|
}
|
|
|
|
const a = await readInput();
|
|
console.write(JSON.stringify(a));
|
|
|
|
const b = await readInput();
|
|
console.write(JSON.stringify(b));
|