Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorThomas <hakerh403@gmail.com>2019-12-29 15:56:43 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2020-01-03 19:47:47 +0300
commita6c25026867683976f4cc22a62d0009dd26a0220 (patch)
tree967c7b423a553b6076e300e7ae1ff2b0db9b1005 /doc
parentbd6a29c60b2f82c1883b1ba4c38abd2c3d16b4d4 (diff)
esm: better error message for unsupported URL
The default ESM loader supports only file and data URLs. This PR adds better error message for it. PR-URL: https://github.com/nodejs/node/pull/31129 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/errors.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index 88d982fd195..c5041c796be 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -1957,6 +1957,11 @@ An attempt was made to load a module with an unknown or unsupported format.
An invalid or unknown process signal was passed to an API expecting a valid
signal (such as [`subprocess.kill()`][]).
+<a id="ERR_UNSUPPORTED_ESM_URL_SCHEME"></a>
+### `ERR_UNSUPPORTED_ESM_URL_SCHEME`
+
+`import` with URL schemes other than `file` and `data` is unsupported.
+
<a id="ERR_V8BREAKITERATOR"></a>
### `ERR_V8BREAKITERATOR`