[Pas2js] Disable optimization in specific units/blocks
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Jan 11 20:09:07 CET 2019
On Fri, 11 Jan 2019 15:54:46 -0300
silvioprog <silvioprog at gmail.com> wrote:
>[...]
> $ cat my-boring-polyfill-but-very-required.js
> SomeClass.prototype.fooBar = (function() {
> alert("Oh yes, baby!");
> });
>
> $ cat myawesomeprogram.pp
> program myawesomeprogram;
>
> procedure fooBar;
> asm
> {$I 'my-boring-polyfiil-but-very-required.js'}
> end;
>
> (just explaining, I don't tried includes yet ...)
>
> then the compiler just include
> 'my-boring-polyfill-but-very-required.js' and keep it in the final
> script, without parsing/removing it.
Now I wonder if we are talking about the same thing.
Are you complaining that the procedure FooBar itself is never
called and therefore removed?
So it has nothing to do with asm-blocks?
Mattias
More information about the Pas2js
mailing list