mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
db1746182b
This patch disallows CJS <-> ESM edges when they come from require(esm) requested in ESM evalaution. Drive-by: don't reuse the cache for imported CJS modules to stash source code of required ESM because the former is also used for cycle detection. PR-URL: https://github.com/nodejs/node/pull/52264 Fixes: https://github.com/nodejs/node/issues/52145 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
4 lines
53 B
JavaScript
4 lines
53 B
JavaScript
// d.mjs
|
|
import "./c.mjs";
|
|
console.log("Execute d");
|