Skip to content

Commit d74d737

Browse files
Clarify in WebAssembly docs that instantiate is only supported when called with a pre-compiled module (#23309)
1 parent 7e3904e commit d74d737

File tree

1 file changed

+4
-0
lines changed
  • src/content/docs/workers/runtime-apis/webassembly

1 file changed

+4
-0
lines changed

src/content/docs/workers/runtime-apis/webassembly/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import { DirectoryListing } from "~/components"
1414
You can use WebAssembly to:
1515

1616
* Execute code written in a language other than JavaScript, via `WebAssembly.instantiate()`.
17+
:::note
18+
`WebAssembly.instantiate()` only supports pre-compiled modules as documented in the [web-standards documentation](/workers/runtime-apis/web-standards/#javascript-standards).
19+
:::
20+
1721
* Write an entire Cloudflare Worker in Rust, using bindings that make Workers' JavaScript APIs available directly from your Rust code.
1822

1923
Most programming languages can be compiled to Wasm, although support varies across languages and compilers. Guides are available for the following languages:

0 commit comments

Comments
 (0)