From 8178665bd1877a55a4e82b07d6ac4a749c8a9c1c Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 2 Sep 2022 19:38:06 +0800 Subject: fix(cli/repl): await Promise.any([])... (#15623) --- ext/console/02_console.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/console/02_console.js') diff --git a/ext/console/02_console.js b/ext/console/02_console.js index 9edf78ffd..24918ea1a 100644 --- a/ext/console/02_console.js +++ b/ext/console/02_console.js @@ -959,6 +959,8 @@ if (RegExpPrototypeTest(/\s+at/, line)) { ArrayPrototypeUnshift(stackLines, line); break; + } else if (typeof line === "undefined") { + break; } finalMessage += line; -- cgit v1.2.3