Tvirtualinterface using hidden class
Webassembly does not allow creating heap memory that is executable. To allow TVirtualInterface to work in webassembly, for each interface that has RTTI enabled, a hidden class is generated that can be exploited by TVirtualInterface to trap calls to the interface and handle them as it would if the code had been created runtime.