<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Fri, Jan 11, 2019 at 4:09 PM Mattias Gaertner via Pas2js <<a href="mailto:pas2js@lists.freepascal.org">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">
Now I wonder if we are talking about the same thing.<br></blockquote><div><br></div><div>Let me explain it using ...</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">
Are you complaining that the procedure FooBar itself is never<br>
called and therefore removed?<br></blockquote><div><br></div><div>... this small example in attachment. Just compile and run it. Notice the following error via browser console:</div><div><br></div><div>"<font size="1" face="monospace, monospace">Uncaught TypeError: pas.program.foo is not a function</font>".<br></div><div><br></div><div>The only way to solve it is by uncommenting the line 20 to make an explicit call to the <font face="monospace, monospace" size="1">foo()</font> function in the Pascal code, but it would be nice a directive something like showed in the line 5, because ...</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
So it has nothing to do with asm-blocks?<br></blockquote></div><div><br></div><div>... such functions are <a href="https://developer.mozilla.org/en-US/docs/Glossary/Polyfill">polyfills</a>, so they are called only in some old browsers, but the compiler has been removed them.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div></div></div></div>