From 5b4ba52786829c82de65a2550ff4e7ce19df1b02 Mon Sep 17 00:00:00 2001 From: gdccwxx <765553928@qq.com> Date: Wed, 6 Oct 2021 22:22:02 +0800 Subject: [PATCH] test: fix "test/common/debugger" identify async function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40348 Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso --- test/common/debugger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/debugger.js b/test/common/debugger.js index 36d6328dcc9b39..0cb4c54eeecfb1 100644 --- a/test/common/debugger.js +++ b/test/common/debugger.js @@ -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/));