node/test/es-module/test-esm-recursive-cjs-dependencies.mjs
Antoine du Hamel fdc65d9769
esm: fix loading of CJS modules from ESM
PR-URL: https://github.com/nodejs/node/pull/49500
Fixes: https://github.com/nodejs/node/issues/49497
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
2023-09-06 10:12:14 +00:00

8 lines
168 B
JavaScript

import '../common/index.mjs';
import { strictEqual } from 'node:assert';
import '../fixtures/recursive-a.cjs';
strictEqual(global.counter, 1);
delete global.counter;