| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b6fc9ad commit c56e324
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -176,7 +176,7 @@ function checkFrozen(context) { | |||
| 176 | 176 | const namespace = await import(moduleUrl.href); | |
| 177 | 177 | // Check dynamic import works | |
| 178 | 178 | const context = vm.createContext(vm.constants.DONT_CONTEXTIFY); | |
| 179 | - const script = new vm.Script(`import('${encodeURI(moduleUrl.href)}')`, { | ||
| 179 | + const script = new vm.Script(`import(${JSON.stringify(moduleUrl)})`, { | ||
| 180 | 180 | importModuleDynamically: vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER, | |
| 181 | 181 | }); | |
| 182 | 182 | const promise = script.runInContext(context); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments