[Pas2js] Call a function from html

Michael Van Canneyt michael at freepascal.org
Thu Sep 5 08:43:28 CEST 2019



On Wed, 4 Sep 2019, Gabriele Cappelletto via Pas2js wrote:

> Excuse me, it works with "program".
>
>
> I have another question. If I write a function not used in the program,
> the compiler does not compile it in the .js file, is there a way to
> force the compilation even if the function is not used?

Compile with -O-

Probably this is the reason why you got the HTML error saying your function
does not exist: the compiler removed the unit.

Michael.


More information about the Pas2js mailing list