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

Commit e0ef480

Browse files
guybedfordMylesBorins
authored andcommitted
pr feedback
1 parent 1c45dc2 commit e0ef480

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/api/esm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ _ESM_RESOLVE_:
166166
> 1. Set _resolvedURL_ to the result of parsing and reserializing
167167
> _specifier_ as a URL.
168168
> 1. Otherwise, if _specifier_ starts with _"/"_, _"./"_ or _"../"_ then,
169-
> 1. Set _resolvedURL_ to the URL resolution of _specifier_ to _parentURL_.
169+
> 1. Set _resolvedURL_ to the URL resolution of _specifier_ relative to _parentURL_.
170170
> 1. Otherwise,
171171
> 1. Note: _specifier_ is now a bare specifier.
172172
> 1. Set _resolvedURL_ the result of
@@ -178,7 +178,7 @@ _ESM_RESOLVE_:
178178
**PACKAGE_RESOLVE**(_packageSpecifier_, _parentURL_)
179179
> 1. Assert: _packageSpecifier_ is a bare specifier.
180180
> 1. If _packageSpecifier_ is a Node.js builtin module then,
181-
> 1. Return _"node:${packageName}"_.
181+
> 1. Return _"node:${packageSpecifier}"_.
182182
> 1. Set _parentURL_ to the parent folder URL of _parentURL_.
183183
> 1. While _parentURL_ contains a non-empty _pathname_,
184184
> 1. Let _packageURL_ be the URL resolution of

lib/internal/errors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ E('ERR_UNHANDLED_ERROR',
896896
if (err === undefined) return msg;
897897
return `${msg} (${err})`;
898898
}, Error);
899+
// This should probably be a `TypeError`.
899900
E('ERR_UNKNOWN_CREDENTIAL', '%s identifier does not exist: %s', Error);
900901
E('ERR_UNKNOWN_ENCODING', 'Unknown encoding: %s', TypeError);
901902

0 commit comments

Comments
 (0)