From 27e8e914e803febac58fa4858de9963365219e65 Mon Sep 17 00:00:00 2001 From: Brinda Ashar Date: Fri, 16 Sep 2022 20:58:41 -0400 Subject: [PATCH] test: change promises to async/await in test-debugger-heap-profiler --- test/sequential/test-debugger-heap-profiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sequential/test-debugger-heap-profiler.js b/test/sequential/test-debugger-heap-profiler.js index b38b43ea843c50..faaa63622d7e46 100644 --- a/test/sequential/test-debugger-heap-profiler.js +++ b/test/sequential/test-debugger-heap-profiler.js @@ -19,7 +19,7 @@ const filename = path.join(tmpdir.path, 'node.heapsnapshot'); const opts = { cwd: tmpdir.path }; const cli = startCLI([fixtures.path('debugger/empty.js')], [], opts); - const waitInitialBreak = async function() { + const waitInitialBreak = async () => { try { await cli.waitForInitialBreak(); await cli.waitForPrompt();