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 <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
gdccwxx authored and targos committed Oct 13, 2021
1 parent 7f50313 commit d8a36ee
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 d8a36ee

Please sign in to comment.