<div dir="ltr"><div><div><div>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).<br><br><a href="https://github.com/tondrej/chakracore-delphi">https://github.com/tondrej/chakracore-delphi</a><br></div>Blog post: <a href="https://tondrej.blogspot.com/2020/10/variant-support-in-chakracore-delphi.html">https://tondrej.blogspot.com/2020/10/variant-support-in-chakracore-delphi.html</a><br><br></div>Cheers,<br></div>Ondrej<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 30 May 2021 at 11:39, Don Alfredo via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><a href="https://synopse.info/forum/viewtopic.php?id=5894" target="_blank">https://synopse.info/forum/viewtopic.php?id=5894</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op zo 30 mei 2021 10:44 schreef Michael Van Canneyt via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On Sun, 30 May 2021, Marco van de Voort via fpc-devel wrote:<br>
<br>
> Before the 3.2.2 release I looked into mantis 0038496 and now I come <br>
> back to it.<br>
><br>
> I noticed that custom variants are completely undocumented, is this know <br>
> (IOW should I file a bug?).<br>
<br>
Please do. I am aware of this issue, but it always falls between the other<br>
issues. If you happen to have some sample programs (however small) I can <br>
use to document this, please attach them to the issue.<br>
<br>
I know that Synopse makes heavy use of the customvariant (I believe their<br>
JSON document it a customvariant), maybe it can be a source of inspiration.<br>
<br>
Michael.<br>
_______________________________________________<br>
fpc-devel maillist  -  <a href="mailto:fpc-devel@lists.freepascal.org" rel="noreferrer" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
</blockquote></div>
_______________________________________________<br>
fpc-devel maillist  -  <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
</blockquote></div>