Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,2 @@
export const func = 42;
import { f } from "./js-wasm-cycle-function-error.wasm";

View File

@ -0,0 +1,2 @@
export const glob = new WebAssembly.Global({ value: "i32" }, 42);
import { f } from "./js-wasm-cycle-global.wasm";

View File

@ -0,0 +1,2 @@
export const mem = new WebAssembly.Memory({ initial: 10 });
import { f } from "./js-wasm-cycle-memory.wasm";

View File

@ -0,0 +1,2 @@
export const tab = new WebAssembly.Table({ element: "anyfunc" });
import { f } from "./js-wasm-cycle-table.wasm";

View File

@ -0,0 +1,2 @@
export const val = 42;
import { f } from "./js-wasm-cycle-value.wasm";

View File

@ -0,0 +1,13 @@
function f() { return 42; }
export { f };
import { mem, tab, glob, func } from "./js-wasm-cycle.wasm";
assert_true(glob instanceof WebAssembly.Global);
assert_equals(glob.valueOf(), 1);
assert_true(mem instanceof WebAssembly.Memory);
assert_true(tab instanceof WebAssembly.Table);
assert_true(func instanceof Function);
f = () => { return 24 };
assert_equals(func(), 42);

View File

@ -0,0 +1 @@
export function logExec() { log.push("executed"); }

View File

@ -0,0 +1 @@
export let f = 5;

View File

@ -0,0 +1 @@
export let g = 5;

View File

@ -0,0 +1 @@
export let m = 5;

View File

@ -0,0 +1 @@
export let t = 5;

View File

@ -0,0 +1,15 @@
import * as mod from "./wasm-js-cycle.wasm";
let jsGlob = new WebAssembly.Global({ value: "i32", mutable: true }, 42);
let jsMem = new WebAssembly.Memory({ initial: 10 });
let jsTab = new WebAssembly.Table({ initial: 10, element: "anyfunc" });
let jsFunc = () => { return 42; };
export { jsGlob, jsMem, jsTab, jsFunc };
export function mutateBindings() {
jsGlob = 0;
jsMem = 0;
jsTab = 0;
jsFunc = 0;
}

View File

@ -0,0 +1 @@
export function pm(x) { postMessage(x); }

View File

@ -0,0 +1 @@
import * as mod from "./worker.wasm"

Binary file not shown.