feat: update wit-bindgen-sample

This commit is contained in:
2022-07-23 10:58:45 +08:00
parent 4b4eacf3f4
commit f0c3aa9df5

View File

@@ -9,4 +9,31 @@ git clone https://github.com/bytecodealliance/wit-bindgen.git
```
How works:
```text
+---------------------------------------------------------------------+
| |
| +---------------------------+ +---------------------------+ |
| | +-----------------------+ | | +-----------------------+ | |
| | | +-----------------+ | | | | +-----------------+ | | |
| | | | User JavaScript | | | | | | User JavaScript | | | |
| | | +-----------------+ | | | | +-----------------+ | | ...... |
| | | | | | | | | |
| | | BOA JavaScript Engine | | | | BOA JavaScript Engine | | |
| | | | | | | | | |
| | +-----------------------+ | | +-----------------------+ | |
| | | | | |
| | WebAssembly (WASM) Engine | | WebAssembly (WASM) Engine | |
| | | | | |
| +---------------------------+ +--+------------------------+ |
| | |
| WASM Container v |
| fetch(url, [options]) |
| console.log(message) |
| |
| |
+---------------------------------------------------------------------+
```