From 5b074affb417f8ea59d6edbc6e7da876107b714a 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 59e55b0e3bff0a..648e7b9707fa69 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1142,8 +1142,8 @@ The resolver can throw the following errors: > 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_). +> **PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _packageSubpath_, +> _pjson.exports_, _defaultConditions_). > 1. Otherwise, return **undefined**. **PACKAGE_EXPORTS_RESOLVE**(_packageURL_, _subpath_, _exports_, _conditions_)