Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

Commit 59f606f

Browse files
committed
feedback from @SMotaal
1 parent 917a4c3 commit 59f606f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doc/api/esm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ of these top-level routines.
183183
PACKAGE_RESOLVE(_packageSpecifier_, _parentURL_)
184184
> 1. Let _packageName_ be *undefined*.
185185
> 1. Let _packagePath_ be *undefined*.
186+
> 1. If _packageSpecifier_ is an empty string, then
187+
> 1. Throw an _Invalid Package Name_ error.
186188
> 1. If _packageSpecifier_ does not start with _"@"_, then
187-
> 1. If _packageSpecifier_ is an empty string, then
188-
> 1. Throw an _Invalid Package Name_ error.
189189
> 1. Set _packageName_ to the substring of _packageSpecifier_ until the
190190
> first _"/"_ separator or the end of the string.
191-
> 1. If _packageSpecifier_ starts with _"@"_, then
191+
> 1. Otherwise,
192192
> 1. If _packageSpecifier_ does not contain a _"/"_ separator, then
193193
> 1. Throw an _Invalid Package Name_ error.
194194
> 1. Set _packageName_ to the substring of _packageSpecifier_

0 commit comments

Comments
 (0)