support abbreviated forms for tables

This commit is contained in:
Ilya Rezvov
2018-01-22 15:42:19 -08:00
parent 64fb4c0a35
commit 6f61f2fd1d
2 changed files with 20 additions and 9 deletions
+5
View File
@@ -29,6 +29,11 @@
(type $forward (func (param i32)))
(table anyfunc (elem $print_i32 $print_f64))
(table (export "my-table") anyfunc (elem $print_i32 $print_f64))
(table (export "my-table") (export "my-table2") anyfunc (elem $print_i32 $print_f64))
(table (import "external-mod" "external-table") 0 anyfunc)
(table (export "my-table") (import "external-mod" "external-table") 0 anyfunc)
(table (export "my-table") (export "my-table2") (import "external-mod" "external-table") 0 anyfunc)
(func (export "print32") (param $i i32)
(local $x f32)