From ff0e6690ed9a4dd3f1844ec657ca1012595fd99a Mon Sep 17 00:00:00 2001 From: Mason Malone Date: Thu, 30 Sep 2021 19:03:42 -0700 Subject: [PATCH] doc: fix typo in esm.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _subpath_ is not defined in this context. This is pretty clearly meant to be _packageSubpath_, which is the second argument to `PACKAGE_SELF_RESOLVE` PR-URL: https://github.com/nodejs/node/pull/40273 Reviewed-By: Guy Bedford Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- doc/api/esm.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 3b256dfe8d07e8..56691d0622ed3a 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1127,9 +1127,8 @@ The resolver can throw the following errors: > **undefined**, then > 1. Return **undefined**. > 1. If _pjson.name_ is equal to _packageName_, then -> 1. Return the _resolved_ destructured value of the result of -> **PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _subpath_, _pjson.exports_, -> _defaultConditions_). +> 1. Return the result of **PACKAGE_EXPORTS_RESOLVE**(_packageURL_, +> _packageSubpath_, _pjson.exports_, _defaultConditions_). > 1. Otherwise, return **undefined**. **PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _subpath_, _exports_, _conditions_)