mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
10 lines
277 B
JavaScript
10 lines
277 B
JavaScript
|
import '../common/index.mjs';
|
||
|
import fixtures from '../common/fixtures.js';
|
||
|
import assert from 'node:assert';
|
||
|
|
||
|
let tickDuringCJSImport = false;
|
||
|
process.nextTick(() => { tickDuringCJSImport = true; });
|
||
|
await import(fixtures.fileURL('empty.cjs'));
|
||
|
|
||
|
assert(!tickDuringCJSImport);
|