crypto: use the coffee shorthand for prototype

This commit is contained in:
Peter Cai 2020-02-19 16:51:40 +08:00
parent b66e7aa3ee
commit 226afdc13a
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ fromUtf8Bytes = (bytes) ->
new TextDecoder 'utf-8'
.decode bytes
hex = (buf) -> (Array.prototype.map.call new Uint8Array(buf),
hex = (buf) -> (Array::map.call new Uint8Array(buf),
(x) => ('00' + x.toString 16).slice(-2)).join ''
fromHex = (str) ->