8 lines
226 B
JavaScript
8 lines
226 B
JavaScript
self.onmessage = async (e) => {
|
|
const exports = { emu: { mem: e.data } };
|
|
const mod = await WebAssembly.instantiateStreaming(
|
|
fetch('wipforth.wasm'), exports)
|
|
mod.instance.exports.reset();
|
|
console.log('System halt');
|
|
};
|