chakracore-delphi (experimental/variants branch) also has a custom variant (descendant of TInvokeableVariantType) to wrap javascript values/objects so you can access properties and call methods on javascript objects at runtime (similar to how you can use ActiveX/Automation objects through Variants when not compiling against a type library).
https://github.com/tondrej/chakracore-delphi Blog post: https://tondrej.blogspot.com/2020/10/variant-support-in-chakracore-delphi.html Cheers, Ondrej On Sun, 30 May 2021 at 11:39, Don Alfredo via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > https://synopse.info/forum/viewtopic.php?id=5894 > > Op zo 30 mei 2021 10:44 schreef Michael Van Canneyt via fpc-devel < > fpc-devel@lists.freepascal.org>: > >> >> >> On Sun, 30 May 2021, Marco van de Voort via fpc-devel wrote: >> >> > Before the 3.2.2 release I looked into mantis 0038496 and now I come >> > back to it. >> > >> > I noticed that custom variants are completely undocumented, is this >> know >> > (IOW should I file a bug?). >> >> Please do. I am aware of this issue, but it always falls between the other >> issues. If you happen to have some sample programs (however small) I can >> use to document this, please attach them to the issue. >> >> I know that Synopse makes heavy use of the customvariant (I believe their >> JSON document it a customvariant), maybe it can be a source of >> inspiration. >> >> Michael. >> _______________________________________________ >> fpc-devel maillist - fpc-devel@lists.freepascal.org >> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel >> > _______________________________________________ > fpc-devel maillist - fpc-devel@lists.freepascal.org > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel