This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Description
The anyref/anyfunc allows a function to exported from a WASM module dynamically - as part of the returned value of another exported function. Similarly for imports.
This effectively blows apart any discipline for what is exported from a WASM module. It also complicates implementation because potentially every WASM function may become accessible from JS.
The table.set operator in conjunction with indirect calling of functions from any table allows monkey-patching of functions.