From 7d9690a3bcb4ce57165341e5f5d0a2161283076d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 6 Mar 2024 12:41:08 -0800 Subject: Remove old support for emscripten/wasm32-u-u This commit removes the `wasm32-shim.js` file, for example, and deletes old support for Emscripten which hasn't been exercised in some time. --- src/etc/wasm32-shim.js | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/etc/wasm32-shim.js (limited to 'src/etc') diff --git a/src/etc/wasm32-shim.js b/src/etc/wasm32-shim.js deleted file mode 100644 index 262a53eabe3..00000000000 --- a/src/etc/wasm32-shim.js +++ /dev/null @@ -1,24 +0,0 @@ -// This is a small "shim" program which is used when wasm32 unit tests are run -// in this repository. This program is intended to be run in node.js and will -// load a wasm module into memory, instantiate it with a set of imports, and -// then run it. -// -// There's a bunch of helper functions defined here in `imports.env`, but note -// that most of them aren't actually needed to execute most programs. Many of -// these are just intended for completeness or debugging. Hopefully over time -// nothing here is needed for completeness. - -const fs = require('fs'); -const process = require('process'); -const buffer = fs.readFileSync(process.argv[2]); - -Error.stackTraceLimit = 20; - -let m = new WebAssembly.Module(buffer); -let instance = new WebAssembly.Instance(m, {}); -try { - instance.exports.main(); -} catch (e) { - console.error(e); - process.exit(101); -} -- cgit 1.4.1-3-g733a5