• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// META: script=/resources/WebIDLParser.js
2// META: script=/resources/idlharness.js
3// META: script=../resources/load_wasm.js
4
5'use strict';
6
7// https://webassembly.github.io/spec/js-api/
8
9idl_test(
10  ['wasm-js-api'],
11  [],
12  async idl_array => {
13    self.mod = await createWasmModule();
14    self.instance = new WebAssembly.Instance(self.mod);
15
16    idl_array.add_objects({
17      Memory: [new WebAssembly.Memory({initial: 1024})],
18      Module: [self.mod],
19      Instance: [self.instance],
20    });
21  }
22);
23