From 1cd82c21f1fb840b3ae30910019132bd7e68a43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 30 Jan 2019 21:34:31 +0200 Subject: [PATCH] @targos code review corrections Co-Authored-By: guybedford --- 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 df368db700..430b55fc8f 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -214,7 +214,7 @@ PACKAGE_RESOLVE(_packageSpecifier_, _parentURL_) > 1. If the folder at _packageURL_ does not exist, then > 1. Set _parentURL_ to the parent URL path of _parentURL_. > 1. Continue the next loop iteration. -> 1. Let _pjson_be the result of **READ_PACKAGE_JSON**(_packageURL_). +> 1. Let _pjson_ be the result of **READ_PACKAGE_JSON**(_packageURL_). > 1. If _packageSubpath_ is empty, then > 1. Return the result of **PACKAGE_MAIN_RESOLVE**(_packageURL_, > _pjson_). @@ -227,7 +227,7 @@ PACKAGE_MAIN_RESOLVE(_packageURL_, _pjson_) > 1. Throw a _Module Not Found_ error. > 1. If _pjson.main_ is a String, then > 1. Let _resolvedMain_ be the concatenation of _packageURL_, "/", and -> _"pjson.main"_. +> _pjson.main_. > 1. If the file at _resolvedMain_ exists, then > 1. Return _resolvedMain_. > 1. If _pjson.type_ is equal to _"esm"_, then