From bb743884202c820decd43f557b73eacdbadfedb6 Mon Sep 17 00:00:00 2001 From: mert Date: Tue, 10 Dec 2024 23:08:08 +0300 Subject: [PATCH] test repair --- test/es-module/test-esm-detect-ambiguous.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/es-module/test-esm-detect-ambiguous.mjs b/test/es-module/test-esm-detect-ambiguous.mjs index 7d3e0709a2e51f..d979eef689ff8a 100644 --- a/test/es-module/test-esm-detect-ambiguous.mjs +++ b/test/es-module/test-esm-detect-ambiguous.mjs @@ -271,7 +271,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL }, }); it('permits top-level `await` above import/export syntax', async () => { - const { stdout, stderr, code } = await spawnPromisified(process.execPath, [ + const { stdout, stderr, code, signal } = await spawnPromisified(process.execPath, [ '--eval', 'await Promise.resolve(); import "node:os"; console.log("executed");', ]); @@ -282,6 +282,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL }, ); strictEqual(stdout, ''); strictEqual(code, 1); + strictEqual(signal, null); }); it('still throws on `await` in an ordinary sync function', async () => {