From 2d86d1f8fb217456d8bcc4b401ce7d143aa36ee9 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Wed, 17 Aug 2022 22:51:27 -0700 Subject: Restore the `extern` heap type (#4898) The GC proposal has split `any` and `extern` back into two separate types, so reintroduce `HeapType::ext` to represent `extern`. Before it was originally removed in #4633, externref was a subtype of anyref, but now it is not. Now that we have separate heaptype type hierarchies, make `HeapType::getLeastUpperBound` fallible as well. --- test/unit/test_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit') diff --git a/test/unit/test_features.py b/test/unit/test_features.py index 5c22886fb..03862d4cc 100644 --- a/test/unit/test_features.py +++ b/test/unit/test_features.py @@ -343,7 +343,7 @@ class TargetFeaturesSectionTest(utils.BinaryenTestCase): self.roundtrip(filename) self.check_features(filename, ['reference-types', 'gc']) disassembly = self.disassemble(filename) - self.assertIn('anyref', disassembly) + self.assertIn('externref', disassembly) self.assertIn('eqref', disassembly) def test_superset(self): -- cgit v1.2.3