summaryrefslogtreecommitdiff
path: root/test/binaryen.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-08-28 15:21:34 -0700
committerGitHub <noreply@github.com>2017-08-28 15:21:34 -0700
commit5c2f4ab22367d04753678fbd12d67b4dc2a29010 (patch)
tree6e8962c2bb02067640853b0c48a090eeb4bcb252 /test/binaryen.js
parent8c89a7baae740013b038865fc4e290439b91eb6f (diff)
downloadbinaryen-5c2f4ab22367d04753678fbd12d67b4dc2a29010.tar.gz
binaryen-5c2f4ab22367d04753678fbd12d67b4dc2a29010.tar.bz2
binaryen-5c2f4ab22367d04753678fbd12d67b4dc2a29010.zip
Safe heap pass (#1145)
Adds --safe-heap which instruments the code to check heap loads and stores for validity (null pointer derefs, within range of valid sbrk memory, and alignment). Used in SAFE_HEAP in emscripten.
Diffstat (limited to 'test/binaryen.js')
-rw-r--r--test/binaryen.js/call_import_error.js.txt2
-rw-r--r--test/binaryen.js/hello-world.js.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/binaryen.js/call_import_error.js.txt b/test/binaryen.js/call_import_error.js.txt
index 61e3f9339..d60d889d2 100644
--- a/test/binaryen.js/call_import_error.js.txt
+++ b/test/binaryen.js/call_import_error.js.txt
@@ -9,7 +9,7 @@
)
[wasm-validator error in function $main] unexpected false: call target must exist, on
-(call $fn)
+[none] (call $fn)
(perhaps it should be a CallImport instead of Call?)
(module
(type $v (func))
diff --git a/test/binaryen.js/hello-world.js.txt b/test/binaryen.js/hello-world.js.txt
index 4429180b4..bcc1a88a0 100644
--- a/test/binaryen.js/hello-world.js.txt
+++ b/test/binaryen.js/hello-world.js.txt
@@ -26,7 +26,7 @@ optimized:
)
)
-binary size: 88
+binary size: 60
[object WebAssembly.Instance]