tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

idlharness.any.js (565B)


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