From abc8463c7b7e0eed02b25fd093615e55232ebc90 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 14 Nov 2019 11:50:06 -0800 Subject: reference-types: Table immediate of call_indirect comes first in the text format (#1219) The overview document was incorrect until recently which I imagine is why wabt got this wrong initially. See https://github.com/WebAssembly/reference-types/issues/59 --- test/roundtrip/generate-func-type-names.txt | 2 +- test/roundtrip/generate-some-names.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/roundtrip') diff --git a/test/roundtrip/generate-func-type-names.txt b/test/roundtrip/generate-func-type-names.txt index 92cfada3..13b84934 100644 --- a/test/roundtrip/generate-func-type-names.txt +++ b/test/roundtrip/generate-func-type-names.txt @@ -18,7 +18,7 @@ (func $f1 (type $t0)) (func $f2 (type $t1) (result i32) i32.const 0 - call_indirect (type $t0) $T0 + call_indirect $T0 (type $t0) i32.const 1) (table $T0 1 1 funcref) (elem $e0 (i32.const 0) $foo.bar)) diff --git a/test/roundtrip/generate-some-names.txt b/test/roundtrip/generate-some-names.txt index a3de50fa..7b4e5e65 100644 --- a/test/roundtrip/generate-some-names.txt +++ b/test/roundtrip/generate-some-names.txt @@ -45,7 +45,7 @@ drop i32.const 0 i32.const 1 - call_indirect (type $t0) $T0 + call_indirect $T0 (type $t0) drop local.get $param1 drop -- cgit v1.2.3