Commit ef87ce4
committed
doc: document '.' and '..' specifiers in ESM_RESOLVE algorithm
The ESM_RESOLVE algorithm's relative-specifier step only mentioned
specifiers starting with '/', './', or '../'. A bare '.' or '..'
specifier is also treated as relative and resolves to a directory,
throwing ERR_UNSUPPORTED_DIR_IMPORT (see lib/internal/modules/esm/resolve.js
isRelativeSpecifier). Document this case so the spec matches the resolver.
Fixes: #398731 parent 26079c0 commit ef87ce4
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1022 | 1022 | | |
1023 | 1023 | | |
1024 | 1024 | | |
1025 | | - | |
| 1025 | + | |
| 1026 | + | |
1026 | 1027 | | |
1027 | 1028 | | |
1028 | 1029 | | |
| |||
0 commit comments