Skip to content

Commit bb74388

Browse files
mertmert
authored andcommitted
test repair
1 parent c3a13fb commit bb74388

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/es-module/test-esm-detect-ambiguous.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL },
271271
});
272272

273273
it('permits top-level `await` above import/export syntax', async () => {
274-
const { stdout, stderr, code } = await spawnPromisified(process.execPath, [
274+
const { stdout, stderr, code, signal } = await spawnPromisified(process.execPath, [
275275
'--eval',
276276
'await Promise.resolve(); import "node:os"; console.log("executed");',
277277
]);
@@ -282,6 +282,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL },
282282
);
283283
strictEqual(stdout, '');
284284
strictEqual(code, 1);
285+
strictEqual(signal, null);
285286
});
286287

287288
it('still throws on `await` in an ordinary sync function', async () => {

0 commit comments

Comments
 (0)