0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/es-module/test-esm-cyclic-dynamic-import.mjs
Bradley Farias 023f49c5a9 module: fix cyclical dynamic import
ensures that instantiation result is only used during initial loading

PR-URL: https://github.com/nodejs/node/pull/18965
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2018-03-05 12:17:51 -06:00

4 lines
97 B
JavaScript

// Flags: --experimental-modules
import '../common';
import('./test-esm-cyclic-dynamic-import');