diff options
author | Jason <m.jason.liu@outlook.com> | 2022-09-02 19:38:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 13:38:06 +0200 |
commit | 8178665bd1877a55a4e82b07d6ac4a749c8a9c1c (patch) | |
tree | 74ba2bf20abbe3ba44080b9177489ff117b097f7 /ext/console/02_console.js | |
parent | a74b2ecf379ddb1ff03c61d4e876153d7b4c45d2 (diff) |
fix(cli/repl): await Promise.any([])... (#15623)
Diffstat (limited to 'ext/console/02_console.js')
-rw-r--r-- | ext/console/02_console.js | 2 |
1 files changed, 2 insertions, 0 deletions
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; |