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

Commit 4095efe

Browse files
targosguybedford
authored andcommitted
@targos code review corrections
Co-Authored-By: guybedford <[email protected]>
1 parent 6780613 commit 4095efe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/esm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ PACKAGE_RESOLVE(_packageSpecifier_, _parentURL_)
214214
> 1. If the folder at _packageURL_ does not exist, then
215215
> 1. Set _parentURL_ to the parent URL path of _parentURL_.
216216
> 1. Continue the next loop iteration.
217-
> 1. Let _pjson_be the result of **READ_PACKAGE_JSON**(_packageURL_).
217+
> 1. Let _pjson_ be the result of **READ_PACKAGE_JSON**(_packageURL_).
218218
> 1. If _packageSubpath_ is empty, then
219219
> 1. Return the result of **PACKAGE_MAIN_RESOLVE**(_packageURL_,
220220
> _pjson_).
@@ -227,7 +227,7 @@ PACKAGE_MAIN_RESOLVE(_packageURL_, _pjson_)
227227
> 1. Throw a _Module Not Found_ error.
228228
> 1. If _pjson.main_ is a String, then
229229
> 1. Let _resolvedMain_ be the concatenation of _packageURL_, "/", and
230-
> _"pjson.main"_.
230+
> _pjson.main_.
231231
> 1. If the file at _resolvedMain_ exists, then
232232
> 1. Return _resolvedMain_.
233233
> 1. If _pjson.type_ is equal to _"esm"_, then
@@ -269,7 +269,7 @@ READ_PACKAGE_JSON(_packageURL_)
269269
> 1. Return **null**.
270270
> 1. If the file at _packageURL_ does not parse as valid JSON, then
271271
> 1. Throw an _Invalid Package Configuration_ error.
272-
> 1. Return the parsed JSON source of the file at _url_.
272+
> 1. Return the parsed JSON source of the file at _pjsonURL_.
273273
274274
[Node.js EP for ES Modules]: https://github.com/nodejs/node-eps/blob/master/002-es-modules.md
275275
[`module.createRequireFromPath()`]: modules.html#modules_module_createrequirefrompath_filename

0 commit comments

Comments
 (0)