| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/WebAssembly/Reference/JavaScript_interface/validate_static | [Back] [Original] |
Get to know MDN better
WebAssembly.validate(bufferSource);
bufferSource WebAssembly ArrayBuffer
wasm (true) (false)
bufferSource ArrayBuffer TypeError
(validate.html ) .wasm validate()
fetch("simple.wasm")
.then((response) => response.arrayBuffer())
.then(function (bytes) {
var valid = WebAssembly.validate(bytes);
console.log(
"The given bytes are " + (valid ? "" : "not ") + "a valid wasm module",
);
});
| WebAssembly JavaScript Interface # dom-webassembly-validate |
| Web Proxy Viewer | New URL | Original Page |