| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e683077 commit 415fb56
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -452,7 +452,7 @@ Module._load = function(request, parent, isMain) { | |||
| 452 | 452 | ESMLoader.hook(hooks); | |
| 453 | 453 | } | |
| 454 | 454 | } | |
| 455 | - await ESMLoader.import(getURLFromFilePath(request).href); | ||
| 455 | + await ESMLoader.import(getURLFromFilePath(request).pathname); | ||
| 456 | 456 | })() | |
| 457 | 457 | .catch((e) => { | |
| 458 | 458 | console.error(e); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + require('../common'); | ||
| 3 | + const { execFileSync } = require('child_process'); | ||
| 4 | + | ||
| 5 | + const node = process.argv[0]; | ||
| 6 | + | ||
| 7 | + execFileSync(node, ['--experimental-modules', 'test/es-module/test-esm-ok']); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments