validate

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

MDN Reference