test: fix "test/common/debugger" identify async function

PR-URL: https://github.com/nodejs/node/pull/40348
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
gdccwxx 2021-10-06 22:22:02 +08:00 committed by Node.js GitHub Bot
parent eaa59571e0
commit 5b4ba52786

View File

@ -103,9 +103,9 @@ function startCLI(args, flags = [], spawnOpts = {}) {
return this.waitFor(/>\s+$/);
},
waitForInitialBreak() {
async waitForInitialBreak() {
return this.waitFor(/break (?:on start )?in/i)
.then(() => {
.then(async () => {
if (isPreBreak(this.output)) {
return this.command('next', false)
.then(() => this.waitFor(/break in/));