From 7d7d1ebcb8076b17f77104c6a071fdb5eb5d18c0 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Mon, 31 Aug 2020 11:40:55 -0700 Subject: [PATCH] doc: error code fix in resolver spec PR-URL: https://github.com/nodejs/node/pull/34998 Reviewed-By: Jan Krems Reviewed-By: Myles Borins Reviewed-By: Ujjwal Sharma --- doc/api/esm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 7721b44fe06263..4b3e80504d27b9 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1177,7 +1177,7 @@ _internal_, _conditions_) > 1. Otherwise, throw an _Invalid Package Target_ error. > 1. If _target_ split on _"/"_ or _"\\"_ contains any _"."_, _".."_ or > _"node_modules"_ segments after the first segment, throw an -> _Invalid Module Specifier_ error. +> _Invalid Package Target_ error. > 1. Let _resolvedTarget_ be the URL resolution of the concatenation of > _packageURL_ and _target_. > 1. Assert: _resolvedTarget_ is contained in _packageURL_.