Error using Web Crypto API in wrangler 3.1.0
I'm having trouble with Web Crypto API. The error object thrown is not readable by logging. Anyone else experiencing a similar issue? Any ideas?
DOMException {
stack: undefined,
code: undefined,
name: undefined,
message: undefined
}const keyData = 'IZGpRVnehcd1X/eCIbXBkQTTCrT4W6VvCr1wfWqrtZ4='
const data = Uint8Array.from(atob(keyData), (c) => c.charCodeAt(0))
const algorithm = { name: 'AES-GCM' }
crypto.subtle.importKey('raw', data, algorithm, false, [
'encrypt',
'decrypt',
])