summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-06-19 23:06:27 -0700
committerGitHub <noreply@github.com>2021-06-19 23:06:27 -0700
commit9fc276298b36080658236f0bc93d94cdf774492c (patch)
treeb60592556b9edf4bb2dcd40034cb760c504cf576 /test/unit
parentaae35755e1d047c1f6fba9abfd2d836feafa5f66 (diff)
downloadbinaryen-9fc276298b36080658236f0bc93d94cdf774492c.tar.gz
binaryen-9fc276298b36080658236f0bc93d94cdf774492c.tar.bz2
binaryen-9fc276298b36080658236f0bc93d94cdf774492c.zip
Remove (attr 0) from tag text format (#3946)
This attribute is always 0 and reserved for future use. In Binayren's unofficial text format we were writing this field as `(attr 0)`, but we have recently come to the conclusion that this is not necessary. Relevant discussion: https://github.com/WebAssembly/exception-handling/pull/160#discussion_r653254680
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/test_features.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/test_features.py b/test/unit/test_features.py
index 06e2661d1..a05d4c9b8 100644
--- a/test/unit/test_features.py
+++ b/test/unit/test_features.py
@@ -187,7 +187,7 @@ class FeatureValidationTest(utils.BinaryenTestCase):
def test_tag(self):
module = '''
(module
- (tag $e (attr 0) (param i32))
+ (tag $e (param i32))
(func $foo
(throw $e (i32.const 0))
)
@@ -221,7 +221,7 @@ class FeatureValidationTest(utils.BinaryenTestCase):
def test_multivalue_tag(self):
module = '''
(module
- (tag $foo (attr 0) (param i32 i64))
+ (tag $foo (param i32 i64))
)
'''
self.check_multivalue_exception_handling(module, 'Multivalue tag type ' +