summaryrefslogtreecommitdiff
path: root/test/wasm2js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-01-23 16:15:38 -0800
committerGitHub <noreply@github.com>2019-01-23 16:15:38 -0800
commit119525ea6078c9af697de0038407ab541f3d4c12 (patch)
tree16aa2f609ab96975ceb8862e3ece7baaa05f5828 /test/wasm2js
parente63c4a7d04c145dafaf4b09de5f9f5de69cee8ef (diff)
downloadbinaryen-119525ea6078c9af697de0038407ab541f3d4c12.tar.gz
binaryen-119525ea6078c9af697de0038407ab541f3d4c12.tar.bz2
binaryen-119525ea6078c9af697de0038407ab541f3d4c12.zip
Validate unique local names, and use validation in wasm2js. Fixes #1885 (#1886)
* Also fixes some bugs in wasm2js tests that did not validate. * Rename FeatureOptions => ToolOptions, as they now contain all the basic stuff each tool needs for commandline options (validation yes or no, and which features if so).
Diffstat (limited to 'test/wasm2js')
-rw-r--r--test/wasm2js/grow-memory-tricky.wast4
-rw-r--r--test/wasm2js/i64-select.wast2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/wasm2js/grow-memory-tricky.wast b/test/wasm2js/grow-memory-tricky.wast
index 7e249e502..8513eb2af 100644
--- a/test/wasm2js/grow-memory-tricky.wast
+++ b/test/wasm2js/grow-memory-tricky.wast
@@ -7,14 +7,14 @@
(export "f2" (func $1))
(func $0 (result i32)
- (block
+ (block (result i32)
(i32.store (i32.const 0) (grow_memory (i32.const 1)))
(i32.load (i32.const 0))
)
)
(func $1 (result i32)
- (block
+ (block (result i32)
(i32.store (i32.const 0) (call $grow))
(i32.load (i32.const 0))
)
diff --git a/test/wasm2js/i64-select.wast b/test/wasm2js/i64-select.wast
index 4e637d3fe..e5f3a6bab 100644
--- a/test/wasm2js/i64-select.wast
+++ b/test/wasm2js/i64-select.wast
@@ -2,7 +2,7 @@
(module
(func $p (param $i i32) (result i32) (local.get $i))
- (func (param i32) (result i64)
+ (func (param i32) (result i32)
(return
(select
(call $p (i32.const -1))