diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-02-19 05:26:31 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 05:26:31 +0900 |
commit | 7089ada7c62618d36f5a0a3339334603c5b61a30 (patch) | |
tree | efffb8dff2247c0a2decaafe32887f49a212c155 /test/unit/test_features.py | |
parent | 629012c3f9a58ff2ecbac066788af57c16471969 (diff) | |
download | binaryen-7089ada7c62618d36f5a0a3339334603c5b61a30.tar.gz binaryen-7089ada7c62618d36f5a0a3339334603c5b61a30.tar.bz2 binaryen-7089ada7c62618d36f5a0a3339334603c5b61a30.zip |
[EH] Remove dependency of reference types from EH (#3575)
The new spec does not have `exnref` so EH does not have dependency of
the reference types proposal anymore.
exception_handling_target_feature.wasm's contents are the same except
previously its target features section contained both reference-types
and exception-handling but now it only has exception-handling.
Diffstat (limited to 'test/unit/test_features.py')
-rw-r--r-- | test/unit/test_features.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/unit/test_features.py b/test/unit/test_features.py index 9c3b20ed7..f33a7e8d3 100644 --- a/test/unit/test_features.py +++ b/test/unit/test_features.py @@ -31,9 +31,7 @@ class FeatureValidationTest(utils.BinaryenTestCase): self.check_feature(module, error, '--enable-bulk-memory') def check_exception_handling(self, module, error): - # Exception handling implies reference types - self.check_feature(module, error, '--enable-exception-handling', - ['--enable-reference-types']) + self.check_feature(module, error, '--enable-exception-handling') def check_tail_call(self, module, error): self.check_feature(module, error, '--enable-tail-call') @@ -46,8 +44,7 @@ class FeatureValidationTest(utils.BinaryenTestCase): def check_multivalue_exception_handling(self, module, error): self.check_feature(module, error, '--enable-multivalue', - ['--enable-exception-handling', - '--enable-reference-types']) + ['--enable-exception-handling']) def check_gc(self, module, error): # GC implies reference types @@ -338,7 +335,7 @@ class TargetFeaturesSectionTest(utils.BinaryenTestCase): def test_exception_handling(self): filename = 'exception_handling_target_feature.wasm' self.roundtrip(filename) - self.check_features(filename, ['exception-handling', 'reference-types']) + self.check_features(filename, ['exception-handling']) self.assertIn('throw', self.disassemble(filename)) def test_gc(self): |