diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-12-03 15:59:10 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-12-07 16:50:05 -1000 |
commit | 92fb30a71c901c08bf676215efa0103cf23bcab8 (patch) | |
tree | 3c149fe9e9530358848d289d8e9c323d00c0c3a4 /test/wasm-only.asm.js | |
parent | 9cd6b3ef888e992fd2e0d90106ebd6a3b1ae83ec (diff) | |
download | binaryen-92fb30a71c901c08bf676215efa0103cf23bcab8.tar.gz binaryen-92fb30a71c901c08bf676215efa0103cf23bcab8.tar.bz2 binaryen-92fb30a71c901c08bf676215efa0103cf23bcab8.zip |
verify we don't legalize table elements
Diffstat (limited to 'test/wasm-only.asm.js')
-rw-r--r-- | test/wasm-only.asm.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/wasm-only.asm.js b/test/wasm-only.asm.js index eab63ba2b..e4ec8b5f7 100644 --- a/test/wasm-only.asm.js +++ b/test/wasm-only.asm.js @@ -237,6 +237,8 @@ function asm(global, env, buffer) { switch64(i64(0)) | 0; } + var FUNCTION_TABLE_X = [illegalImport]; // must stay ok in the table, not legalized, as it will be called internally by the true type + return { test64: test64, illegalParam : illegalParam, illegalResult: illegalResult, keepAlive: keepAlive }; } |