[Pas2js] Browser gives a "warning" when using interfaces
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Sep 25 13:37:17 CEST 2019
On Wed, 25 Sep 2019 08:23:21 -0300
helioroots roots <heliosroots at gmail.com> wrote:
> Browser gives a "warning" when using interfaces, See in the image if
> the code after the return is necessary?
>
> [image: Captura de tela_2019-09-25_08-02-35.png]
> [image: Captura de tela_2019-09-25_08-03-56.png]
That is normal. The last lines are appended to any Pascal function.
pas2js has no optimization yet to omit these statements.
See here for the list of possible optimizations and feature requests:
https://wiki.lazarus.freepascal.org/Pas2js_optimizations
The wiki seems to be down at the moment.
Mattias
More information about the Pas2js
mailing list