I have already defined this call with a global JS var
var UCompanydetail = pas.UCompanyDetailForm.TCompanyDetailForm;
It's not the calling who failed but when call from asm just at the creation of
aXHR_Actions := THTTPRequest.Create(Self);
there's this cascading error
Uncaught TypeError TypeError: Cannot use 'in' operator to search for '4' in undefined
at ValidateRename (c:\Users\Gilles.vscode\extensions\tmssoftware.tmswebcore-2.1.6240\resources\coresource\RTL\classes.pas:5566:19)
at InsertComponent (c:\Users\Gilles.vscode\extensions\tmssoftware.tmswebcore-2.1.6240\resources\coresource\RTL\classes.pas:5795:3)
at Create$1 (c:\Users\Gilles.vscode\extensions\tmssoftware.tmswebcore-2.1.6240\resources\coresource\RTL\classes.pas:5637:34)
at Create$1 (c:\Users\Gilles.vscode\extensions\tmssoftware.tmswebcore-2.1.6240\resources\coresource\WEBLib.REST.pas:258:3)
at c.$create (c:\Users\Gilles.vscode\extensions\tmssoftware.tmswebcore-2.1.6240\resources\coresource\RTL\rtl.js:332:1)