[Pas2js] Testing generics
warleyalex
warleyalex at yahoo.com.br
Sat Oct 19 00:48:33 CEST 2019
> // ! pas2js don't support anonymous methods yet
I mean like in this situation:
TArrayHelper.Sort<TIntegerDynArray>(A,
TComparer<TIntegerDynArray>.Construct(
function (const Left, Right: TIntegerDynArray): Integer
begin
Result := Right[0] - Left[0];
end));
(...) I've still got Uncaught TypeError: Cannot read property '_Release' of
null
live preview:
https://pas2js.github.io/master/tarrayprojectdouble/tarrayprojectdouble.html
download project: https://pas2js.github.io/master/tarrayprojectdouble.rar
--
Sent from: http://pas2js.38893.n8.nabble.com/
More information about the Pas2js
mailing list