You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
I think it needs to add (elem declare func $f1 $f2) or (elem declare funcref (ref.func $f1) (ref.func $f2)) into the module in the above mentioned test case?
That is:
Got it, thanks.
All ocurrences of ref.func in the module environment are treated as declaring a valid ref.func target for the code
section.
In the above module, the export and global section reference to $f1 and $f2, so the (elem declare func $f1 $f2) is not needed. Right?
If I'm correct, the test case in
core/ref_func.wast
should not pass.https://github.com/WebAssembly/reference-types/blob/master/test/core/ref_func.wast#L80-L106
The following test case got an expected invalid result:
Because the
$f
is not declared inelem
.I think it needs to add
(elem declare func $f1 $f2)
or(elem declare funcref (ref.func $f1) (ref.func $f2))
into the module in the above mentioned test case?That is:
The text was updated successfully, but these errors were encountered: