diff options
author | Guy Bedford <guybedford@gmail.com> | 2021-06-27 15:29:02 -0700 |
---|---|---|
committer | Guy Bedford <guybedford@gmail.com> | 2021-07-15 08:52:37 -0700 |
commit | e2a6399be742f53103474d9fc1e56fadf7f90ccc (patch) | |
tree | 05b152a838205a30b1cfc825b37bcdf935610475 /test/parallel | |
parent | 499f693b20a19cb2c6c620bd71e4500c0d5edf2a (diff) | |
download | node-new-e2a6399be742f53103474d9fc1e56fadf7f90ccc.tar.gz |
esm: refine ERR_REQUIRE_ESM errors
PR-URL: https://github.com/nodejs/node/pull/39175
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel')
-rw-r--r-- | test/parallel/test-require-mjs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-require-mjs.js b/test/parallel/test-require-mjs.js index 69f8527555..112f08879d 100644 --- a/test/parallel/test-require-mjs.js +++ b/test/parallel/test-require-mjs.js @@ -5,7 +5,7 @@ const assert = require('assert'); assert.throws( () => require('../fixtures/es-modules/test-esm-ok.mjs'), { - message: /Must use import to load ES Module/, + message: /dynamic import\(\) which is available in all CommonJS modules/, code: 'ERR_REQUIRE_ESM' } ); |