[Pas2js] TJSCrypto name minor error

warleyalex warleyalex at yahoo.com.br
Tue Aug 13 13:46:02 CEST 2019

code to reproduce the issue:
  data: TJSUint8Array;

  data := TJSUint8Array.New(16);

We have this msg when compiling:
 Error: Cannot access this member from a class
...to make to work, I have to make 2 changes in the definition:

1st) add the modifier class procedure and
2nd) put the external name "crypto" instead of "Crypto"
to avoid 
   Uncaught TypeError: Crypto.getRandomValues is not a function


Sent from: http://pas2js.38893.n8.nabble.com/

More information about the Pas2js mailing list