<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Thu, Jan 10, 2019 at 7:42 PM Mattias Gaertner via Pas2js <<a href="mailto:pas2js@lists.freepascal.org" target="_blank">pas2js@lists.freepascal.org</a>> wrote:</div><div dir="ltr">[...]</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
"unconditional"? The condition is pretty simple: Referenced by<br>
Pascal code.<br>
Note that contrary to asm-blocks of Delphi/FPC, JS code cannot be<br>
reliably parsed at compile time.<br></blockquote><div><br></div><div>Hm... I would have to study the compiler internals to get some idea to solve it without putting dummy code above/below asm blocks. 🤔</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
We all agree that $push, $pop, $optimization and some way to annotate<br>
asm-blocks are needed.<br>
<br>
Mattias</blockquote></div><div dir="ltr"><br></div><div>Any option to notify the compiler not to remove our particular JS blocks will be very useful. ☺ For now I'll do a small extra JS library and move all polyfills into it.</div><div dir="ltr"><br></div>--<br><div dir="ltr" class="m_3669459968393734182m_279929907604305120gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div></div></div></div>