[Pas2js] TJSCrypto name minor error

Michael Van Canneyt michael at freepascal.org
Tue Aug 13 13:47:14 CEST 2019



On Tue, 13 Aug 2019, warleyalex via Pas2js wrote:

> code to reproduce the issue:
> ------
> var
>  data: TJSUint8Array;
>
> begin
>  data := TJSUint8Array.New(16);
>  TJSCrypto.getRandomValues(data);
> ------
>
> We have this msg when compiling:

I repeat, you are doing this wrong.

Your code should be:
Window.Crypto.getRandomValues(data);

Michael.


More information about the Pas2js mailing list