| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1450,7 +1450,7 @@ E('ERR_MISSING_ARGS', | |||
| 1450 | 1450 | E('ERR_MISSING_OPTION', '%s is required', TypeError); | |
| 1451 | 1451 | E('ERR_MODULE_NOT_FOUND', function(path, base, exactUrl) { | |
| 1452 | 1452 | if (exactUrl) { | |
| 1453 | - lazyInternalUtil().setOwnProperty(this, 'url', exactUrl); | ||
| 1453 | + lazyInternalUtil().setOwnProperty(this, 'url', `${exactUrl}`); | ||
| 1454 | 1454 | } | |
| 1455 | 1455 | return `Cannot find ${ | |
| 1456 | 1456 | exactUrl ? 'module' : 'package'} '${path}' imported from ${base}`; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,10 +9,8 @@ const fixtures = dirname.slice(0, dirname.lastIndexOf('/', dirname.length - 2) + | |||
| 9 | 9 | ||
| 10 | 10 | assert.strictEqual(import.meta.resolve('./test-esm-import-meta.mjs'), | |
| 11 | 11 | dirname + 'test-esm-import-meta.mjs'); | |
| 12 | - const notFound = import.meta.resolve('./notfound.mjs'); | ||
| 13 | - assert.strictEqual(new URL(notFound).href, new URL('./notfound.mjs', import.meta.url).href); | ||
| 14 | - const noExtension = import.meta.resolve('./asset'); | ||
| 15 | - assert.strictEqual(new URL(noExtension).href, new URL('./asset', import.meta.url).href); | ||
| 12 | + assert.strictEqual(import.meta.resolve('./notfound.mjs'), new URL('./notfound.mjs', import.meta.url).href); | ||
| 13 | + assert.strictEqual(import.meta.resolve('./asset'), new URL('./asset', import.meta.url).href); | ||
| 16 | 14 | try { | |
| 17 | 15 | import.meta.resolve('does-not-exist'); | |
| 18 | 16 | assert.fail(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments