Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 5 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /wasm/jsapi/idlharness.any.html - WPT Dashboard Interop Dashboard
- /wasm/jsapi/idlharness.any.worker.html - WPT Dashboard Interop Dashboard
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: script=../resources/load_wasm.js
'use strict';
idl_test(
['wasm-js-api'],
[],
async idl_array => {
self.mod = await createWasmModule();
self.instance = new WebAssembly.Instance(self.mod);
idl_array.add_objects({
Memory: [new WebAssembly.Memory({initial: 1024})],
Module: [self.mod],
Instance: [self.instance],
});
}
);