mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-15 14:01:25 +00:00
js-sys: Define imports for WebAssembly.Instance
and its constructor
Part of #670 and #275
This commit is contained in:
@ -21,8 +21,19 @@ function getInvalidTableObject() {
|
||||
return { element: "anyfunc", initial: 1, maximum: 0 }
|
||||
}
|
||||
|
||||
function getImports() {
|
||||
return {
|
||||
imports: {
|
||||
imported_func: function () {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getInvalidTableObject,
|
||||
getTableObject,
|
||||
getWasmArray,
|
||||
getImports,
|
||||
};
|
||||
|
Reference in New Issue
Block a user