Skip to content

Commit a0e24c2

Browse files
committed
Fix after version upgrade
1 parent d04a0d5 commit a0e24c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js-executor/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default class JsExecutor {
130130
jsCode,
131131
wasmCode,
132132
);
133-
await exports.instantiate(imports);
133+
await exports.instantiate({"playground.master": imports});
134134
const bufferedOutput = output ?? exports.bufferedOutput;
135135
const outputString = bufferedOutput.buffer;
136136
bufferedOutput.buffer = '';
@@ -218,7 +218,7 @@ export default class JsExecutor {
218218
// necessary to load stdlib.wasm before its initialization to parallelize
219219
// language=JavaScript
220220
(`const stdlibWasm = fetch('${API_URLS.STDLIB_WASM(hash)}');\n` + script).replace(
221-
"fetch(new URL('./stdlib.wasm',import.meta.url).href)",
221+
"fetch(new URL('./stdlib_master.wasm',import.meta.url).href)",
222222
"stdlibWasm"
223223
).replace(
224224
"(extends) => { return { extends }; }",
@@ -235,7 +235,7 @@ export default class JsExecutor {
235235
this.stdlibExports = Promise.all([skikoExports, stdlibExports])
236236
.then(async ([skikoExportsResult, stdlibExportsResult]) => {
237237
return [
238-
await stdlibExportsResult.stdlib({
238+
await stdlibExportsResult.instantiate({
239239
"./skiko.mjs": skikoExportsResult
240240
}),
241241
stdlibExportsResult

0 commit comments

Comments
 (0)