MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / w

Function w

examples/extern/gmath.bundle.js:199–217  ·  view source on GitHub ↗
(A4, I5)

Source from the content-addressed store, hash-verified

197 return A.__wbindgen_free(w2, 1 * o2), i;
198}
199async function w(A4, I5) {
200 if ("function" == typeof Response && A4 instanceof Response) {
201 if ("function" == typeof WebAssembly.instantiateStreaming) try {
202 return await WebAssembly.instantiateStreaming(A4, I5);
203 } catch (I6) {
204 if ("application/wasm" == A4.headers.get("Content-Type")) throw I6;
205 console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", I6);
206 }
207 const g3 = await A4.arrayBuffer();
208 return await WebAssembly.instantiate(g3, I5);
209 }
210 {
211 const g4 = await WebAssembly.instantiate(A4, I5);
212 return g4 instanceof WebAssembly.Instance ? {
213 instance: g4,
214 module: A4
215 } : g4;
216 }
217}
218async function o(I7) {
219 void 0 === I7 && (I7 = importMeta.url.replace(/\.js$/, "_bg.wasm"));
220 ("string" == typeof I7 || "function" == typeof Request && I7 instanceof Request || "function" == typeof URL && I7 instanceof URL) && (I7 = fetch(I7));

Callers 1

oFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected