js: revert changes to class read/write restriction
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Mon, 20 Aug 2018 10:12:43 +0000 (12:12 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Mon, 20 Aug 2018 10:12:43 +0000 (12:12 +0200)
commit1954d27be86b8e4eb801ca6ddcb670f8cfb149f5
tree90183ad8fbc37e440a3f2949e3dc5c1fbc12bacb
parent74684f24c663af12c88b196fecd5f44863b893e4
js: revert changes to class read/write restriction

--

* undoes 94ee0988d4eaac27785de6efb7c19ca9976e1e9c and
  e16a87e83910ebb6bfdc4148369165f121f0997e.
  I do not fully understand why my approach was bad, but I am not in
  a position to argue. This revert was requested to me after a review,
  and I'm doing it in the assumption that more experienced people know
  better than me.
* unittests: Also changed some outdated tests that stopped working
  since 754e799d35fd62d7a979452f44342934659908c7 (as GPGME_Key is not
  exported, one cannot check for instanceof in the tests anymore)
lang/js/src/Connection.js
lang/js/src/Errors.js
lang/js/src/Key.js
lang/js/src/Keyring.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