From 563e4fd2d084af86b71023e625405911e5e6bc04 Mon Sep 17 00:00:00 2001 From: Nik Nyby Date: Wed, 4 May 2016 19:52:48 -0400 Subject: Revert "Don't use array comprehensions" This reverts commit 2505343492494b6bd2e99ba22e48e521cf965ccd. See: http://lists.gnu.org/archive/html/bug-librejs/2016-05/msg00001.html --- lib/script_entries/crypto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/script_entries/crypto.js') 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) { -- cgit v1.2.3