[Pas2js] How to access a private field (avoiding JS)?

silvioprog silvioprog at gmail.com
Sat Jan 12 17:02:51 CET 2019


On Sat, Jan 12, 2019 at 6:29 AM Mattias Gaertner via Pas2js <
pas2js at lists.freepascal.org> wrote:
[...]

> The external classes gives you direct JS access. You can
> access any JS property, even if it does not exist.
> You can add new properties or test if they exist. That's why the
> compiler cannot and does not check it.
>
> Mattias
>

This is amazing!

I'm implementing another very popular JS library that I'll share to the
pas2js project, and this Object['Field'] facility will help me a lot.

Thank you again! :-)

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190112/a2db4507/attachment.html>


More information about the Pas2js mailing list