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
diff options
context:
space:
mode:
authorGuy Bedford <guybedford@gmail.com>2020-04-14 08:36:15 +0300
committerGuy Bedford <guybedford@gmail.com>2020-04-23 01:48:44 +0300
commite767ed0558a17b87e543b79d1f842821fbdb8e6b (patch)
tree85989791f5081045725b10c06e9c288f0e3dc753 /doc/api/esm.md
parentecc18f570967e50a70a8bf12168e668ed7f5967f (diff)
module: exports not exported for null resolutions
PR-URL: https://github.com/nodejs/node/pull/32838 Reviewed-By: Jan Krems <jan.krems@gmail.com>
Diffstat (limited to 'doc/api/esm.md')
-rw-r--r--doc/api/esm.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md
index 97124486cc2..49c467effbc 100644
--- a/doc/api/esm.md
+++ b/doc/api/esm.md
@@ -1661,13 +1661,15 @@ The resolver can throw the following errors:
> loop on any _Package Path Not Exported_ error.
> 1. Throw a _Package Path Not Exported_ error.
> 1. Otherwise, if _target_ is an Array, then
-> 1. If _target.length is zero, throw an _Invalid Package Target_ error.
+> 1. If _target.length is zero, throw a _Package Path Not Exported_ error.
> 1. For each item _targetValue_ in _target_, do
> 1. If _targetValue_ is an Array, continue the loop.
> 1. Return the result of **PACKAGE_EXPORTS_TARGET_RESOLVE**(_packageURL_,
> _targetValue_, _subpath_, _env_), continuing the loop on any
> _Package Path Not Exported_ or _Invalid Package Target_ error.
> 1. Throw the last fallback resolution error.
+> 1. Otherwise, if _target_ is _null_, throw a _Package Path Not Exported_
+> error.
> 1. Otherwise throw an _Invalid Package Target_ error.
**ESM_FORMAT**(_url_)