elem.drop
Drop a passive element data block from memory. After doing this you will not be able to copy the
function references from it into a table. This may not actually do anything on the computer it is running on, it is
more of a hint than an instruction. The elements may never be removed.
Syntax
elem.drop $passiveElement
Parameters
$passiveElement
This points to a passive data (element...)
object.
Example
(table $table 10 funcref)
(elem $passiveElement func $add $sub $mul)
(func $setupTable
i32.const 0
i32.const 0
i32.const 3
table.init $table $passiveElement
elem.drop $passiveElement
)