diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-11-11 14:27:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-11 14:27:53 -0800 |
commit | 63ddbc04cf75a45a05a2b1f11564563915ebdbec (patch) | |
tree | 4a449c0c53642aa803f48ce33d55155e9771dc8f /scripts | |
parent | 4ad7a2cfd0b3ac14fbe767d50e4994f8297d37f6 (diff) | |
download | binaryen-63ddbc04cf75a45a05a2b1f11564563915ebdbec.tar.gz binaryen-63ddbc04cf75a45a05a2b1f11564563915ebdbec.tar.bz2 binaryen-63ddbc04cf75a45a05a2b1f11564563915ebdbec.zip |
Fix catch parsing (#2428)
- When a catch body is a block, call its `finalize` function with the
correct type
- Don't create a block when there's one instruction in a catch body
- Remove `makeCatch` from gen-s-parser.py; it's not necessary
- Fix a test case that has a `catch` without `try`
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen-s-parser.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py index 53b04e563..c7f0a51c8 100755 --- a/scripts/gen-s-parser.py +++ b/scripts/gen-s-parser.py @@ -470,7 +470,6 @@ instructions = [ # exception handling instructions ("try", "makeTry(s)"), ("throw", "makeThrow(s)"), - ("catch", "makeCatch(s)"), ("rethrow", "makeRethrow(s)"), ("br_on_exn", "makeBrOnExn(s)") ] |