| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f537c86 commit db8c66b
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1415,8 +1415,8 @@ E('ERR_UNSUPPORTED_DIR_IMPORT', "Directory import '%s' is not supported " + | |||
| 1415 | 1415 | E('ERR_UNSUPPORTED_ESM_URL_SCHEME', (url) => { | |
| 1416 | 1416 | let msg = 'Only file and data URLs are supported by the default ESM loader'; | |
| 1417 | 1417 | if (isWindows && url.protocol.length === 2) { | |
| 1418 | - msg += '. Absolute Windows paths without prefix are not valid URLs, ' + | ||
| 1419 | - "consider using 'file://' prefix"; | ||
| 1418 | + msg += | ||
| 1419 | + '. On Windows, absolute paths must be valid file:// URLs'; | ||
| 1420 | 1420 | } | |
| 1421 | 1421 | msg += `. Received protocol '${url.protocol}'`; | |
| 1422 | 1422 | return msg; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,8 +59,8 @@ function expectFsNamespace(result) { | |||
| 59 | 59 | if (common.isWindows) { | |
| 60 | 60 | const msg = | |
| 61 | 61 | 'Only file and data URLs are supported by the default ESM loader. ' + | |
| 62 | - 'Absolute Windows paths without prefix are not valid URLs, ' + | ||
| 63 | - "consider using 'file://' prefix. Received protocol 'c:'"; | ||
| 62 | + 'On Windows, absolute paths must be valid file:// URLs. ' + | ||
| 63 | + "Received protocol 'c:'"; | ||
| 64 | 64 | expectModuleError(import('C:\\example\\foo.mjs'), | |
| 65 | 65 | 'ERR_UNSUPPORTED_ESM_URL_SCHEME', | |
| 66 | 66 | msg); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments