js: Making objects inmutable
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Mon, 30 Jul 2018 10:31:27 +0000 (12:31 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Mon, 30 Jul 2018 10:31:27 +0000 (12:31 +0200)
commite16a87e83910ebb6bfdc4148369165f121f0997e
tree40727a6f9aec8110cc0bfaefc8aa36d14e302ecd
parent522121ea7e105acc22795b1997ca500c7b227b4f
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.
lang/js/BrowserTestExtension/tests/startup.js
lang/js/src/Connection.js
lang/js/src/Errors.js
lang/js/src/Key.js
lang/js/src/Message.js
lang/js/src/Signature.js
lang/js/src/gpgmejs.js
lang/js/src/index.js
lang/js/unittests.js