Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions examples/pxScene2d/src/rcvrcore/ESMLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ var getModule = async function (specifier, referencingModule) {
}
else
{
specifier = "http://" + baseString.substring(0, baseString.lastIndexOf("/")+1) + specifier;
let result = await loadHttpFile(referencingModule.context.global.sparkscene, specifier);
mod = loadJavaScriptModule(result, specifier, referencingModule.context);
}
Expand Down Expand Up @@ -433,8 +432,8 @@ var linker = async function (specifier, referencingModule) {
}
}

var importModuleDynamically = async function (specifier, { url }) {
var mod = await getModule(specifier,{ url });
var importModuleDynamically = async function (specifier, referencingModule) {
var mod = await getModule(specifier,referencingModule);
mod.instantiate();
await mod.evaluate();
return mod;
Expand Down