validate

external fun validate(bytes: AllowSharedBufferSource, options: WebAssemblyCompileOptions? = definedExternally): Boolean(source)

MDN Reference