aboutsummaryrefslogtreecommitdiffstats
path: root/lib/script_entries/crypto.js
diff options
context:
space:
mode:
authorNik Nyby <nikolas@gnu.org>2016-05-04 19:52:48 -0400
committerNik Nyby <nikolas@gnu.org>2016-05-04 19:52:48 -0400
commit563e4fd2d084af86b71023e625405911e5e6bc04 (patch)
tree5208b6a8ad73a07ebb410c5a1b9e523241c985e3 /lib/script_entries/crypto.js
parent96f133c5b6e50ab2c4c32d80f7fdc0d115d526cd (diff)
downloadlibrejsxul-563e4fd2d084af86b71023e625405911e5e6bc04.tar.lz
librejsxul-563e4fd2d084af86b71023e625405911e5e6bc04.tar.xz
librejsxul-563e4fd2d084af86b71023e625405911e5e6bc04.zip
Revert "Don't use array comprehensions"
This reverts commit 2505343492494b6bd2e99ba22e48e521cf965ccd. See: http://lists.gnu.org/archive/html/bug-librejs/2016-05/msg00001.html
Diffstat (limited to 'lib/script_entries/crypto.js')
-rw-r--r--lib/script_entries/crypto.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/script_entries/crypto.js b/lib/script_entries/crypto.js
index ba73db3..d8d9c0a 100644
--- a/lib/script_entries/crypto.js
+++ b/lib/script_entries/crypto.js
@@ -41,7 +41,7 @@ CryptoString.prototype.encryptString = function(str) {
var data = this.converter.convertToByteArray(str, result);
this.cryptoHash.update(data, data.length);
var hash = this.cryptoHash.finish(false);
- return hash.map(i => this.toHexString(hash.charCodeAt(i))).join("");
+ return [this.toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
};
CryptoString.prototype.toHexString = function(charCode) {