| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ko/docs/WebAssembly/Reference/JavaScript_interface/validate_static | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. Its been available across browsers since 2017 10.
* Some parts of this feature may have varying levels of support.
WebAssembly.validate() wasm (true) (false) WebAssembly typed array .
WebAssembly.validate(bufferSource);
bufferSourceWebAssembly typed array ArrayBuffer.
bufferSource wasm (true) (false) .
bufferSource typed array ArrayBuffer TypeError .
(validate.html source code see it live) .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",
);
});
| Specification |
|---|
| WebAssembly JavaScript Interface # dom-webassembly-validate |
This page was last modified on 2025 6 27 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |