Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
wasmModule = loader.instantiateSync(compiled, {
env: {
trace: () => {}
}
});
cpu = wasmModule.CPU.wrap(wasmModule.cpu);
statusRegister = wasmModule.StatusRegister.wrap(cpu.statusRegister);
});