mirror of
https://github.com/LukeHagar/wasm-overhead-research.git
synced 2025-12-09 21:07:45 +00:00
chore: tcr analysis
This commit is contained in:
@@ -29,8 +29,9 @@ const importObject = {
|
||||
const wasmModule = await WebAssembly.instantiate(wasmBytes, importObject);
|
||||
const wasmInstance = wasmModule.instance;
|
||||
|
||||
// Initialize WASI - now that we have a _start function, we can call start
|
||||
wasi.start(wasmInstance);
|
||||
// Initialize WASI even though we don't have _start
|
||||
// This is needed for memory operations to work properly
|
||||
wasi.initialize(wasmInstance);
|
||||
|
||||
// Helper functions to work with C strings
|
||||
function allocateString(wasmInstance, str) {
|
||||
|
||||
Reference in New Issue
Block a user