js: make init export immutable
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Wed, 1 Aug 2018 10:51:12 +0000 (12:51 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Wed, 1 Aug 2018 10:51:12 +0000 (12:51 +0200)
commit68a012deb3b501d7417778be12c88bd475a37cb5
tree453fd5544589dbc51968f2138f7816b69ae83c66
parent6313a2de9ee84a9321292f775e4d6c790486d3dc
js: make init export immutable

--

* src/index.js: The export now uses a freezed Object, which does not
  allow for simply overwriting the init method by e.g. a third-party
  library.
* BrowsertestExtension: Added some tests trying if decryption of bad
  data properly fails
lang/js/BrowserTestExtension/browsertest.html
lang/js/BrowserTestExtension/tests/decryptTest.js [new file with mode: 0644]
lang/js/BrowserTestExtension/tests/inputvalues.js
lang/js/src/index.js