const { ops } = Deno.core;
const bytes = ops.op_get_wasm_module();
const module = new WebAssembly.Module(bytes);
const instance = new WebAssembly.Instance(module, { wasm: ops });
ops.op_set_wasm_mem(instance.exports.memory);
instance.exports.call();
const memory = instance.exports.memory;
const view = new Uint8Array(memory.buffer);
if (view[0] !== 69) {
throw new Error("Expected first byte to be 69");
}
instance.exports.call_mem(instance.exports.memory);
if (view[0] !== 68) {
throw new Error("Expected first byte to be 68");
}