We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8012c48 commit 924c1f8Copy full SHA for 924c1f8
test/core/call_indirect.wast
@@ -990,6 +990,15 @@
990
"type mismatch"
991
)
992
993
+;; call_indirect expects funcref type but receives externref
994
+(assert_invalid
995
+ (module
996
+ (type (func))
997
+ (table 10 externref)
998
+ (func $call-indirect (call_indirect (type 0) (i32.const 0)))
999
+ )
1000
+ "type mismatch"
1001
+)
1002
1003
;; Unbound type
1004
@@ -1008,6 +1017,20 @@
1008
1017
"unknown type"
1009
1018
1010
1019
1020
+;; pass very large number to call_indirect
1021
1022
1023
+ (type (func (param i32)))
1024
+ (table 1 funcref)
1025
+ (func $conditional-dangling-type
1026
+ (if (i32.const 1)
1027
+ (then (call_indirect (type 0xffffffff) (i32.const 0)))
1028
1029
1030
1031
+ "unknown type"
1032
1033
+
1011
1034
1012
1035
;; Unbound function in table
1013
1036
0 commit comments