[Pas2js] Disable optimization in specific units/blocks

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jan 11 22:35:36 CET 2019


On Fri, 11 Jan 2019 17:09:30 -0300
silvioprog <silvioprog at gmail.com> wrote:

>[...]
> ... this small example in attachment. Just compile and run it. Notice
> the following error via browser console:
> 
> "Uncaught TypeError: pas.program.foo is not a function".

That has nothing to do with the asm in foo. foo would be removed even
if it would be plain Pascal.
The cause is the asm in bar. And that is what I explained: pas2js does
not yet parse the asm block.

Mattias


More information about the Pas2js mailing list