mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

When require(esm) encounters a cached module job that is instantiated but not yet evaluated, run the evaluation. This catches an edge case previously missed in https://github.com/nodejs/node/pull/57187. PR-URL: https://github.com/nodejs/node/pull/58067 Fixes: https://github.com/nodejs/node/issues/58061 Reviewed-By: Jacob Smith <jacob@frende.me>
4 lines
171 B
JavaScript
4 lines
171 B
JavaScript
import '../common/index.mjs';
|
|
import assert from 'node:assert';
|
|
import { b, c } from '../fixtures/es-modules/require-module-instantiated/a.mjs';
|
|
assert.strictEqual(b, c);
|