Thanks Phil!
The FPC wiki is the place to start for the JVM compiler, although it's now a standard compiler (or at least it is on Mac: ppcjvm).
http://wiki.freepascal.org/FPC_JVMHere's something I wrote up several years ago:
https://macpgmr.github.io/pba/PbaStatus.htmlI don't think very many developers have ever used the FPC JVM compiler, probably because you have to use the Java and Android runtime. No FPC SysUtils, Classes, LCL units, or anything like that is available for it.
I would guess that at least initially the Pascal to JS converter would have the same issue: Use the runtime features built in to every Web browser (DOM, HTML, JS built-in objects, etc.)? Or try to put together something that provides FPC RTL-like units, at the expense of bulking up the Web app client download?