node/test/fixtures/recursive-a.cjs
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

7 lines
86 B
JavaScript

'use strict';
global.counter ??= 0;
global.counter++;
require('./recursive-b.cjs');