How to use the @assemblyscript/loader.instantiateSync function in @assemblyscript/loader

To help you get started, we’ve selected a few @assemblyscript/loader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ColinEberhardt / atari2600-wasm / test / cpu.js View on Github external
beforeEach(() => {
  wasmModule = loader.instantiateSync(compiled, {
    env: {
      trace: () => {}
    }
  });
  cpu = wasmModule.CPU.wrap(wasmModule.cpu);
  statusRegister = wasmModule.StatusRegister.wrap(cpu.statusRegister);
});

@assemblyscript/loader

A convenient loader for AssemblyScript modules.

Apache-2.0
Latest version published 20 days ago

Package Health Score

94 / 100
Full package analysis