Bug: Oxygene event handling in Wasm causes a link error in runtime

When wireing an event on the xx_Event types from Oxygene, a link error is raised on the start of the webassembly code - in runtime.

The error is caused by the line

MyButton_Events.Click += @MyButton_Click;

in index.pas.

Project to reproduce: Module8 3.bugreport.zip (1.7 MB)

Build log: Module8 3.bugreport.txt (21.8 KB)

Print screen:

Thanks, logged as bugs://85716