Files
node/test/es-module/test-import-cjs-jitless.mjs
Joyee Cheung 04a086a1f4 esm: use wasm version of cjs-module-lexer
The synchronous version has been available since 1.4.0.

PR-URL: https://github.com/nodejs/node/pull/60663
Refs: https://github.com/nodejs/node/issues/59913
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2025-11-12 18:34:59 +00:00

7 lines
209 B
JavaScript

// Flags: --jitless
// Tests that importing a CJS module works in JIT-less mode (i.e. falling back to the
// JS parser if WASM is not available).
import '../common/index.mjs';
import '../fixtures/empty.cjs';