catch syntax error

This commit is contained in:
Christophe Diederichs 2020-06-17 13:31:54 +02:00
parent ec9cac17d0
commit e35adc6823

View File

@ -27,7 +27,7 @@ function sodium_memcmp (a, b) {
return vn(a, 0, b, 0, a.byteLength) === 0 return vn(a, 0, b, 0, a.byteLength) === 0
} }
function sodium_is_zero = function (arr) { function sodium_is_zero (arr) {
var d = 0 var d = 0
for (let i = 0; i < arr.length; i++) d |= arr[i] for (let i = 0; i < arr.length; i++) d |= arr[i]
return d === 0 return d === 0