File: exec.tjs

package info (click to toggle)
node-webassemblyjs 1.11.4%2Bdfsg%2B~cs10.11.17-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 8,328 kB
  • sloc: javascript: 29,410; makefile: 85; sh: 42; ansic: 16
file content (8 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
it("should export the global value", () => {
  return WebAssembly.instantiate(wasmmodule).then(m => {
    const { a } = m.instance.exports;

    assert.typeOf(a, "number");
    assert.equal(a, 1);
  });
});