Webassembly broken in preview 10.0.0.2497

When I create a new Webassembly project and try and run it (with no changes to generated code) I get:

Connected to remote debugger
Loading module
Server running at http://127.0.0.1:3217/index.html
http://127.0.0.1:3217/index.html:12 WebAssembly file Module1.wasm has been loaded.
http://127.0.0.1:3217/wasm/RemObjectsElements.js:298 Fatal exception in WebAssembly!
http://127.0.0.1:3217/wasm/RemObjectsElements.js:298 Exception: RemObjects.Elements.System.ArgumentException: Instance must be compatible with method declaring type
An unhandled exception of type ‘RuntimeError’ occurred in Module1.wasm.
Additional information: RuntimeError: unreachable
at ElementsRaiseException (wasm-function[2385]:0xa21e7)
at mi_td__1sMethodInfo6_Invokenona_o (wasm-function[1113]:0x6f393)
at mi_tnte__1sWebAssembly18__l__g_c____DisplayClass117__l_GetProxyFor_g_b____2nt13__1sEcmaScriptObject (wasm-function[879]:0x669a4)
at mi_t16__1sWebAssemblyDelegate6_Invokent13__1sEcmaScriptObject (wasm-function[636]:0x5d6ec)
at __island_call_delegate (wasm-function[2386]:0xa2212)
at Object.res [as HelloWorld] (http://127.0.0.1:3217/wasm/RemObjectsElements.js:267:66)
at http://127.0.0.1:3217/index.html:14:12

Indeed, yes, reproduced; looks like this is a regression from some fixes done last week, my apologies.

Thanks, logged as bugs://84122

bugs://84122 got closed with status fixed.

(fwiw, this fix was in 2499, I was just late to close the issue)