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 pull[bot] committed Jan 24, 2022
1 parent 40a6271 commit 70c4340
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 70c4340

Please sign in to comment.