UNPKG

wasmux

Version:

WebAssembly toolchain for compiling libc and kernel into system-level WASM modules

26 lines (21 loc) 566 B
/* * 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. */ "use strict"; 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, { });