mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-27 18:50:13 +02:00
When invoke an asynchronous method, the invoke function return the promise created.
This commit is contained in:
parent
0e5c9df70b
commit
18a40f92ee
@ -1951,6 +1951,8 @@ begin
|
||||
|
||||
if Assigned(ReturnType) then
|
||||
TValue.Make(ReturnValue, ReturnType.Handle, Result)
|
||||
else if IsAsyncCall then
|
||||
TValue.Make(ReturnValue, TypeInfo(TJSPromise), Result)
|
||||
else if IsConstructor then
|
||||
TValue.Make(ReturnValue, Instance.TypeInfo, Result)
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user