If I call a factory method on the JS side, e.g.
var obj = factory.CreateTestObject();
function Factory.CreateTestObject() : TestObject ; begin Result := new TestObject(); end ;
then WASM fails with
Exception: RemObjects.Elements.System.ArgumentException: Unknown type for o
If I call the constructor directly (JS side) then everything’s fine
var obj = lib.TestObject();
It seems that there is a problem when a method which returns an object is called from JS.