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 () => {