diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-11 03:06:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-11 03:06:22 +0900 |
| commit | 47d43f5a583dc2d474e553afe0cb682d878231b1 (patch) | |
| tree | e4de770f9960a117feef631caec7d208c8a1796b /tests | |
| parent | f64ab73b841377f044e727ee1d9e0bcf55c6b626 (diff) | |
| download | ducc-47d43f5a583dc2d474e553afe0cb682d878231b1.tar.gz ducc-47d43f5a583dc2d474e553afe0cb682d878231b1.tar.zst ducc-47d43f5a583dc2d474e553afe0cb682d878231b1.zip | |
Revert "feat: minimal wasm backend"
This reverts commit f64ab73b841377f044e727ee1d9e0bcf55c6b626.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/wasm.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/wasm.sh b/tests/wasm.sh deleted file mode 100644 index d024989..0000000 --- a/tests/wasm.sh +++ /dev/null @@ -1,25 +0,0 @@ -cat > main.c <<'EOF' -int add(int a, int b) { - return a + b; -} -EOF - -"$ducc" "${CFLAGS:-}" --wasm -o main.wat main.c - -wat2wasm main.wat -o main.wasm - -cat > main.mjs <<'EOF' -import { readFile } from 'fs/promises'; - -const wasmBuffer = await readFile('./main.wasm'); -const { instance } = await WebAssembly.instantiate(wasmBuffer); - -console.log(instance.exports.add(3, 5)); -EOF -node main.mjs > output - -cat > expected <<'EOF' -8 -EOF - -diff -u expected output |
