[Pas2js] pas2js record incompatibility
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Jan 7 18:03:24 CET 2019
Hi,
I changed the way how records are converted to JS.
Records are now created as Object instead of function:
- records now have hidden (not enumerable) functions $new, $assign, $clone, $eq
- passing records to var argument now passes the record directly instead of creating a temporary setter
- Assigning a record, e.g. aRecord:=value, now copies the values, while
keeping the JS object. This makes pointer of record Delphi/FPC
compatible.
In the pas2js packages I found only one asm-block that needed a
change, so I hope it works as flawless for you too.
Mattias
More information about the Pas2js
mailing list