aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/wasm_exec.js
diff options
context:
space:
mode:
authorFederico G. Schwindt <[email protected]>2021-03-15 11:41:37 +0000
committerGitHub <[email protected]>2021-03-15 12:41:37 +0100
commit303acf5ed6dd77eacd401795c4a9167d31a18172 (patch)
tree0340daf69ee75668e05a1634e8b030cb3b20e24f /targets/wasm_exec.js
parent7d1ce24be5c60525e14b25a29bc0833b454ab7d4 (diff)
downloadtinygo-303acf5ed6dd77eacd401795c4a9167d31a18172.tar.gz
tinygo-303acf5ed6dd77eacd401795c4a9167d31a18172.zip
Upgrade WASI version to wasi_snapshot_preview1 (#1691)
wasm: Upgrade WASI version to wasi_snapshot_preview1 Addresses #1647.
Diffstat (limited to 'targets/wasm_exec.js')
-rw-r--r--targets/wasm_exec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/targets/wasm_exec.js b/targets/wasm_exec.js
index eb153ed04..96ff7cfce 100644
--- a/targets/wasm_exec.js
+++ b/targets/wasm_exec.js
@@ -247,8 +247,8 @@
const timeOrigin = Date.now() - performance.now();
this.importObject = {
- wasi_unstable: {
- // https://github.com/bytecodealliance/wasmtime/blob/master/docs/WASI-api.md#__wasi_fd_write
+ wasi_snapshot_preview1: {
+ // https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md#fd_write
fd_write: function(fd, iovs_ptr, iovs_len, nwritten_ptr) {
let nwritten = 0;
if (fd == 1) {