[Pas2js] RES: Pas2js Digest, Vol 39, Issue 1
Michael Van Canneyt
michael at freepascal.org
Tue Jun 1 13:18:44 CEST 2021
On Tue, 1 Jun 2021, Henrique Gottardi Werlang wrote:
> Unit MyTest;
>
> procedure Run; async;
> begin
> // do something...
> end;
>
> begin
> run()._then(function (a : jsvalue) : jsvalue
> begin
> end);
> end.
>
> In the line "run()._then(function (a : jsvalue) : jsvalue” give me the error “Error: illegal qualifier "." after " run():Procedure/Function"”
I don't think you can use a procedure, you must use a function.
Mattias will have to confirm.
Michael.
More information about the Pas2js
mailing list