wasmux
Version:
WebAssembly toolchain for compiling libc and kernel into system-level WASM modules
26 lines (21 loc) • 566 B
JavaScript
/*
* MIT License
*
* Copyright (c) 2026 Yurii Yakubin (yurii.yakubin@gmail.com)
*
* Permission is granted to use, copy, modify, and distribute this software
* under the MIT License. See LICENSE file for details.
*/
;
const UserInstance = require("./user-instance");
async function createInstance(options) {
if (!crossOriginIsolated) {
throw 'Only crossOriginIsolated'
}
return UserInstance.createAsync(options, {
WorkerCtor: globalThis.Worker,
fetchBuffer: null,
});
}
module.exports = Object.assign(createInstance, {
});