[Pas2js] TJSCrypto name minor error
warleyalex
warleyalex at yahoo.com.br
Mon Aug 12 14:36:11 CEST 2019
the original definition in Web.pas
===================================
TJSCrypto = class external name 'Crypto' (TJSObject)
private
Fsubtle: TJSSubtleCrypto; external name 'subtle';
Public
class procedure getRandomValues (anArray : TJSTypedArray);
property subtle : TJSSubtleCrypto Read Fsubtle;
end;
===================================
... I need to access the getRandomValues method.
e.g.
TJSCrypto.getRandomValues(data);
the method getRandomValues is not available!
the minor error within name "crypto" definition, I believe the correct is:
TJSCrypto = class external name 'crypto' (TJSObject)
to generate the correct output
window.crypto.getRandomValues(array);
--
Sent from: http://pas2js.38893.n8.nabble.com/
More information about the Pas2js
mailing list