it is possible to use the helpers "class/record" in JSValue? -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190918/bdc30e4f/attachment.html>
Mailing lists / pas2js / 2019-09
JSValue Helpers
9 messages · 4 people · –
- Hhelioroots roots 4
- MMattias Gaertner 3
- MMichael Van Canneyt 1
- Wwarleyalex 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
it is possible to use the helpers "class/record" in JSValue?
If you mean: Can you define a type helper for jsvalue? Now you can.
Mattias
it is possible to use the helpers "class/record" in JSValue? -------------- next part…
not work.
[image: Captura de tela_2019-09-18_13-54-03.png]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190918/b4a6609c/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: Captura de tela_2019-09-18_13-54-03.png
Type: image/png
Size: 40782 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190918/b4a6609c/attachment-0001.png>
not work. [image: Captura de tela_2019-09-18_13-54-03.png]
Please create a bug report with a complete example.
Mattias
example
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190918/000b2209/attachment.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.zip
Type: application/zip
Size: 2476 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190918/000b2209/attachment.zip>
example
It compiles here.
Are you sure you are using the svn version?
Mattias
svn was out of date now it's working. thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190918/877b8bc1/attachment.html>
Interesting
a) if both helpers are for the same type, I would say to prioritize the last one.
b) code insight does not yet support suggesting methods helpers.
warleyalex wroteInteresting a) if both helpers are for the same type, I would say to prioritize the last one.
That should be so unless you have the multihelpers switch on.
b) code insight does not yet support suggesting methods helpers.
It does here ?
But maybe not for JSValue, as it is an internal type for the pas2js compiler ?
Michael.
