Skip to content

Commit 0784193

Browse files
committed
[js] Fix loadng stuff from paths that don't end up with /
1 parent f5ae4b4 commit 0784193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm/js/nqp-runtime/runtime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ if (process.browser) {
198198
for (const prefix of prefixes) {
199199
try {
200200
if (typeof prefix === 'string') {
201-
/*await*/ loadWithCache(loadFrom.require(prefix + mangled));
201+
/*await*/ loadWithCache(loadFrom.require(prefix + '/' + mangled));
202202
} else {
203-
/*await*/ loadWithCache(prefix.module.require(prefix.prefix + mangled));
203+
/*await*/ loadWithCache(prefix.module.require(prefix.prefix + '/' + mangled));
204204
}
205205

206206
found = true;

0 commit comments

Comments
 (0)