Home GnuPG
Diffusion GPGME e16a87e83910

js: Making objects inmutable

Description

js: Making objects inmutable

  • An Object.freeze should stop any malicious third party from changing objects' methods once the objects are instantiated (see unittest for an approach that would have worked before)
    • An initialized gpgmejs- object doesn't have a '_Keyring' property anymore (it still has its 'Keyring')
    • The internal expect='base64' needed to be turned into a method.

Details

Provenance
mkrambachAuthored on Jul 30 2018, 12:31 PM
Parents
rM522121ea7e10: js: fix indentaion
Branches
Unknown
Tags
Unknown
Reverted By
rM1954d27be86b: js: revert changes to class read/write restriction