Skip to content

Commit

Permalink
fixup! module: report unfinished TLA in ambiguous modules
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Sep 17, 2024
1 parent 5930f8e commit 2ee5df9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/es-module/test-esm-detect-ambiguous.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL },
it('reports unfinished top-level `await`', async () => {
const { stdout, stderr, code, signal } = await spawnPromisified(process.execPath, [
'--no-warnings',
fixtures.path('es-modules/tla/unresolved.js')
fixtures.path('es-modules/tla/unresolved.js'),
]);

strictEqual(stderr, '');
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/es-modules/tla/unresolved.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
await new Promise(() => {});

0 comments on commit 2ee5df9

Please sign in to comment.