Skip to content

Commit

Permalink
test: fix "test/common/debugger" identify async function
Browse files Browse the repository at this point in the history
PR-URL: #40348
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
gdccwxx authored and nodejs-github-bot committed Oct 9, 2021
1 parent eaa5957 commit 5b4ba52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common/debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/));
Expand Down

0 comments on commit 5b4ba52

Please sign in to comment.