node/test/fixtures/es-modules/esm-esm-cjs-esm-cycle/c.mjs

6 lines
149 B
JavaScript

// c.mjs
import { createRequire } from "module";
console.log("Start c");
createRequire(import.meta.url)("./d.mjs");
throw new Error("Error from c");