From cc0fab918aed3643abdc3566ade3f70f06d1d954 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Mon, 8 Jan 2024 11:46:30 -0800 Subject: Fix incorrect wat in tests (#6207) The new wat parser is much more strict than the legacy wat parser; the latter accepts all sorts of things that the spec does not allow. To ease an eventual transition to using the new wat parser by default, update the tests to use the standard text format in many places where they previously did not. We do not yet have a way to prevent new errors from being introduced into the test suite, but at least there will now be many fewer errors when it comes time to make the switch. --- test/metadce/table.wast | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/metadce/table.wast') diff --git a/test/metadce/table.wast b/test/metadce/table.wast index d1ee93ae4..5b226b60f 100644 --- a/test/metadce/table.wast +++ b/test/metadce/table.wast @@ -6,7 +6,7 @@ (table $table-unused 10 funcref) ;; An active element segment, which is always used. - (elem $elem (table $table-used) (i32.const 0) $func) + (elem $elem (table $table-used) (i32.const 0) func $func) (elem $passive-elem-used $func) @@ -27,4 +27,3 @@ ) ) ) - -- cgit v1.2.3