@@ -214,7 +214,7 @@ PACKAGE_RESOLVE(_packageSpecifier_, _parentURL_)
214
214
> 1. If the folder at _packageURL_ does not exist, then
215
215
> 1. Set _parentURL_ to the parent URL path of _parentURL_.
216
216
> 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_).
218
218
> 1. If _packageSubpath_ is empty, then
219
219
> 1. Return the result of **PACKAGE_MAIN_RESOLVE**(_packageURL_,
220
220
> _pjson_).
@@ -227,7 +227,7 @@ PACKAGE_MAIN_RESOLVE(_packageURL_, _pjson_)
227
227
> 1. Throw a _Module Not Found_ error.
228
228
> 1. If _pjson.main_ is a String, then
229
229
> 1. Let _resolvedMain_ be the concatenation of _packageURL_, "/", and
230
- > _"pjson.main"_ .
230
+ > _pjson.main_ .
231
231
> 1. If the file at _resolvedMain_ exists, then
232
232
> 1. Return _resolvedMain_.
233
233
> 1. If _pjson.type_ is equal to _"esm"_, then
@@ -269,7 +269,7 @@ READ_PACKAGE_JSON(_packageURL_)
269
269
> 1. Return **null**.
270
270
> 1. If the file at _packageURL_ does not parse as valid JSON, then
271
271
> 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_ .
273
273
274
274
[Node.js EP for ES Modules]: https://github.com/nodejs/node-eps/blob/master/002-es-modules.md
275
275
[` module .createRequireFromPath ()` ]: modules.html#modules_module_createrequirefrompath_filename
0 commit comments