diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-05-09 09:36:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-09 09:36:45 -0700 |
commit | 64aa81e0e9655cf16e3af65e1bbe98e7fc6cf974 (patch) | |
tree | 26f3608bb1944b63712a8d1a161e61b41956276d /scripts | |
parent | b856925f6c25df22a0901d8f9e24e4247b4acc18 (diff) | |
download | binaryen-64aa81e0e9655cf16e3af65e1bbe98e7fc6cf974.tar.gz binaryen-64aa81e0e9655cf16e3af65e1bbe98e7fc6cf974.tar.bz2 binaryen-64aa81e0e9655cf16e3af65e1bbe98e7fc6cf974.zip |
Unreachable typing fixes (#1004)
* fix type of drop, set_local, set_global, load, etc: when operand is unreachable, so is the node itself
* support binary tests properly in test/passes
* fix unreachable typing of blocks with no name and an unreachable child
* fix continue emitting in asm2wasm
* properly handle emitting of unreachable load
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test/support.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/test/support.py b/scripts/test/support.py index 43762fffa..5d791d155 100755 --- a/scripts/test/support.py +++ b/scripts/test/support.py @@ -94,6 +94,11 @@ def split_wast(wast): # this splits out a wast into [(module, assertions), ..] # we ignore module invalidity tests here. wast = open(wast).read() + + # if it's a binary, leave it as is + if wast[0] == '\0': + return [[wast, '']] + ret = [] def to_end(j): |