diff options
author | cjihrig <cjihrig@gmail.com> | 2019-12-15 18:38:58 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-12-18 04:35:09 +0300 |
commit | b6c589fde50b5b69a77fa6f316bccbc9ff259f48 (patch) | |
tree | 646fcd7310508606cc917d17f2c2dbcb9f59488e /test | |
parent | 145116b3a16905291f3f1c96646aa89730271002 (diff) |
deps,src,test: update to uvwasi 0.0.3
This commit updates to uvwasi 0.0.3, which implements a newer
version of the WASI spec, snapshot_1. Since the WASI API has
changed, this also requires updating the WebAssembly memory
interfacing logic and recompiling the WASI tests with a
version of wasi-libc that supports snapshot_1.
PR-URL: https://github.com/nodejs/node/pull/30980
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/wasi/test-wasi-symlinks.js | 2 | ||||
-rw-r--r-- | test/wasi/test-wasi.js | 2 | ||||
-rwxr-xr-x | test/wasi/wasm/cant_dotdot.wasm | bin | 33007 -> 32641 bytes | |||
-rwxr-xr-x | test/wasi/wasm/clock_getres.wasm | bin | 30146 -> 30064 bytes | |||
-rwxr-xr-x | test/wasi/wasm/exitcode.wasm | bin | 12694 -> 12107 bytes | |||
-rwxr-xr-x | test/wasi/wasm/fd_prestat_get_refresh.wasm | bin | 12855 -> 12307 bytes | |||
-rwxr-xr-x | test/wasi/wasm/follow_symlink.wasm | bin | 34948 -> 34590 bytes | |||
-rwxr-xr-x | test/wasi/wasm/getentropy.wasm | bin | 29943 -> 29861 bytes | |||
-rwxr-xr-x | test/wasi/wasm/getrusage.wasm | bin | 30602 -> 30455 bytes | |||
-rwxr-xr-x | test/wasi/wasm/gettimeofday.wasm | bin | 30428 -> 30346 bytes | |||
-rwxr-xr-x | test/wasi/wasm/notdir.wasm | bin | 31267 -> 30998 bytes | |||
-rwxr-xr-x | test/wasi/wasm/poll.wasm | bin | 34096 -> 33777 bytes | |||
-rwxr-xr-x | test/wasi/wasm/preopen_populates.wasm | bin | 12689 -> 12102 bytes | |||
-rwxr-xr-x | test/wasi/wasm/read_file.wasm | bin | 34932 -> 34574 bytes | |||
-rwxr-xr-x | test/wasi/wasm/read_file_twice.wasm | bin | 35018 -> 34660 bytes | |||
-rwxr-xr-x | test/wasi/wasm/stat.wasm | bin | 34507 -> 34188 bytes | |||
-rwxr-xr-x | test/wasi/wasm/stdin.wasm | bin | 18390 -> 18044 bytes | |||
-rwxr-xr-x | test/wasi/wasm/symlink_escape.wasm | bin | 33026 -> 32660 bytes | |||
-rwxr-xr-x | test/wasi/wasm/symlink_loop.wasm | bin | 33009 -> 32643 bytes | |||
-rwxr-xr-x | test/wasi/wasm/write_file.wasm | bin | 33357 -> 32983 bytes |
20 files changed, 2 insertions, 2 deletions
diff --git a/test/wasi/test-wasi-symlinks.js b/test/wasi/test-wasi-symlinks.js index 7c6e6809738..56e49331b0b 100644 --- a/test/wasi/test-wasi-symlinks.js +++ b/test/wasi/test-wasi-symlinks.js @@ -17,7 +17,7 @@ if (process.argv[2] === 'wasi-child') { '/sandbox': process.argv[4] } }); - const importObject = { wasi_unstable: wasi.wasiImport }; + const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; const modulePath = path.join(wasmDir, `${process.argv[3]}.wasm`); const buffer = fs.readFileSync(modulePath); diff --git a/test/wasi/test-wasi.js b/test/wasi/test-wasi.js index d1060f5b32d..f80ed835f82 100644 --- a/test/wasi/test-wasi.js +++ b/test/wasi/test-wasi.js @@ -22,7 +22,7 @@ if (process.argv[2] === 'wasi-child') { '/tmp': tmpdir.path } }); - const importObject = { wasi_unstable: wasi.wasiImport }; + const importObject = { wasi_snapshot_preview1: wasi.wasiImport }; const modulePath = path.join(wasmDir, `${process.argv[3]}.wasm`); const buffer = fs.readFileSync(modulePath); diff --git a/test/wasi/wasm/cant_dotdot.wasm b/test/wasi/wasm/cant_dotdot.wasm Binary files differindex 61e202d6913..1ffbe23c6af 100755 --- a/test/wasi/wasm/cant_dotdot.wasm +++ b/test/wasi/wasm/cant_dotdot.wasm diff --git a/test/wasi/wasm/clock_getres.wasm b/test/wasi/wasm/clock_getres.wasm Binary files differindex fac14edb04d..510049dca4a 100755 --- a/test/wasi/wasm/clock_getres.wasm +++ b/test/wasi/wasm/clock_getres.wasm diff --git a/test/wasi/wasm/exitcode.wasm b/test/wasi/wasm/exitcode.wasm Binary files differindex b2d9ef5e114..ceb797f8b31 100755 --- a/test/wasi/wasm/exitcode.wasm +++ b/test/wasi/wasm/exitcode.wasm diff --git a/test/wasi/wasm/fd_prestat_get_refresh.wasm b/test/wasi/wasm/fd_prestat_get_refresh.wasm Binary files differindex cf4bb97c3b2..159cfa9e4c8 100755 --- a/test/wasi/wasm/fd_prestat_get_refresh.wasm +++ b/test/wasi/wasm/fd_prestat_get_refresh.wasm diff --git a/test/wasi/wasm/follow_symlink.wasm b/test/wasi/wasm/follow_symlink.wasm Binary files differindex 48cf8da1eb2..f5f236c53f2 100755 --- a/test/wasi/wasm/follow_symlink.wasm +++ b/test/wasi/wasm/follow_symlink.wasm diff --git a/test/wasi/wasm/getentropy.wasm b/test/wasi/wasm/getentropy.wasm Binary files differindex 6e3e8c8a8ed..527ac6a17d3 100755 --- a/test/wasi/wasm/getentropy.wasm +++ b/test/wasi/wasm/getentropy.wasm diff --git a/test/wasi/wasm/getrusage.wasm b/test/wasi/wasm/getrusage.wasm Binary files differindex 524e809175b..c9546e232c7 100755 --- a/test/wasi/wasm/getrusage.wasm +++ b/test/wasi/wasm/getrusage.wasm diff --git a/test/wasi/wasm/gettimeofday.wasm b/test/wasi/wasm/gettimeofday.wasm Binary files differindex 94627f00866..7629b119d88 100755 --- a/test/wasi/wasm/gettimeofday.wasm +++ b/test/wasi/wasm/gettimeofday.wasm diff --git a/test/wasi/wasm/notdir.wasm b/test/wasi/wasm/notdir.wasm Binary files differindex f83a790ddc4..6b592fc17b0 100755 --- a/test/wasi/wasm/notdir.wasm +++ b/test/wasi/wasm/notdir.wasm diff --git a/test/wasi/wasm/poll.wasm b/test/wasi/wasm/poll.wasm Binary files differindex 98d0736762d..90b39c502ef 100755 --- a/test/wasi/wasm/poll.wasm +++ b/test/wasi/wasm/poll.wasm diff --git a/test/wasi/wasm/preopen_populates.wasm b/test/wasi/wasm/preopen_populates.wasm Binary files differindex e7c34bc9646..618050b3b4c 100755 --- a/test/wasi/wasm/preopen_populates.wasm +++ b/test/wasi/wasm/preopen_populates.wasm diff --git a/test/wasi/wasm/read_file.wasm b/test/wasi/wasm/read_file.wasm Binary files differindex 2b9db77d272..1c5e8107e0a 100755 --- a/test/wasi/wasm/read_file.wasm +++ b/test/wasi/wasm/read_file.wasm diff --git a/test/wasi/wasm/read_file_twice.wasm b/test/wasi/wasm/read_file_twice.wasm Binary files differindex cd075a4de75..6917a105eb4 100755 --- a/test/wasi/wasm/read_file_twice.wasm +++ b/test/wasi/wasm/read_file_twice.wasm diff --git a/test/wasi/wasm/stat.wasm b/test/wasi/wasm/stat.wasm Binary files differindex 9007334d37d..0d7980970fb 100755 --- a/test/wasi/wasm/stat.wasm +++ b/test/wasi/wasm/stat.wasm diff --git a/test/wasi/wasm/stdin.wasm b/test/wasi/wasm/stdin.wasm Binary files differindex 72646087532..3cc548607af 100755 --- a/test/wasi/wasm/stdin.wasm +++ b/test/wasi/wasm/stdin.wasm diff --git a/test/wasi/wasm/symlink_escape.wasm b/test/wasi/wasm/symlink_escape.wasm Binary files differindex 0cdb8327a1a..fcb8cfd5790 100755 --- a/test/wasi/wasm/symlink_escape.wasm +++ b/test/wasi/wasm/symlink_escape.wasm diff --git a/test/wasi/wasm/symlink_loop.wasm b/test/wasi/wasm/symlink_loop.wasm Binary files differindex 3883d5278c7..98e5c62f4b8 100755 --- a/test/wasi/wasm/symlink_loop.wasm +++ b/test/wasi/wasm/symlink_loop.wasm diff --git a/test/wasi/wasm/write_file.wasm b/test/wasi/wasm/write_file.wasm Binary files differindex 500405e0fb3..c21d0c2bfef 100755 --- a/test/wasi/wasm/write_file.wasm +++ b/test/wasi/wasm/write_file.wasm |