I'm writing a WebAssembly application in C using Clang and LLD.
How do I write a C function that takes an externref as a parameter and how do I call this function from JavaScript? How do I use the externref value in C to call an imported function that is defined in JavaScript?