| 472 | // Continue regardless of error. |
| 473 | } |
| 474 | async function importModuleDynamically(specifier, _, importAttributes, phase) { |
| 475 | const cascadedLoader = require('internal/modules/esm/loader').getOrInitializeCascadedLoader(); |
| 476 | return cascadedLoader.import(specifier, parentURL, importAttributes, |
| 477 | phase === 'evaluation' ? cascadedLoader.kEvaluationPhase : |
| 478 | cascadedLoader.kSourcePhase); |
| 479 | } |
| 480 | // `experimentalREPLAwait` is set to true by default. |
| 481 | // Shall be false in case `--no-experimental-repl-await` flag is used. |
| 482 | if (experimentalREPLAwait && StringPrototypeIncludes(code, 'await')) { |