Missing subtle added to object decomposition

This commit is contained in:
Mika 2018-02-12 10:35:01 +02:00 committed by GitHub
parent 5cdffa104d
commit 8d685c84ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
sea.js
View File

@ -326,7 +326,7 @@
;USE(function(module){
// This internal func returns SHA-1 hashed data for KeyID generation
const { ossl = subtle } = USE('./webcrypto')
const { subtle, ossl = subtle } = USE('./webcrypto')
const sha1hash = (b) => ossl.digest('SHA-1', new ArrayBuffer(b))
module.exports = sha1hash
})(USE, './sha1');