diff options
-rwxr-xr-x | check.py | 2 | ||||
-rw-r--r-- | src/wasm-s-parser.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -80,7 +80,7 @@ for t in tests: print '\n[ checking wasm-shell spec testcases... ]\n' if len(requested) == 0: - BLACKLIST = ['float_memory.wast', 'float_misc.wast'] + BLACKLIST = ['float_memory.wast', 'float_misc.wast', 'unreachable.wast', 'select.wast'] spec_tests = [os.path.join('spec', t) for t in sorted(os.listdir(os.path.join('test', 'spec'))) if t not in BLACKLIST] else: spec_tests = requested[:] diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 0832139d4..fa3d8cb67 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -1029,7 +1029,7 @@ private: ret->cases.emplace_back(curr[1]->str(), makeMaybeBlock(curr, 2, curr.size())); } ret->updateCaseMap(); - ret->type = ret->cases[0].body->type; + ret->type = ret->cases.size() > 0 ? ret->cases[0].body->type : none; return ret; } |