frontend/.pnpm-store/v3/files/f3/702923d59c0c17e393e1e6814a3b8c4c400d9ac476767be550de35d84593ac57e46399541cbb4ed37531aa989b5adcfaadf7e41b073bc0275a95d6b0afcc78

12 lines
395 B
Plaintext

/*! blob-to-buffer. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
if (!globalThis.DOMException) {
const { MessageChannel } = require('worker_threads')
const port = new MessageChannel().port1
const ab = new ArrayBuffer()
try { port.postMessage(ab, [ab, ab]) }
catch (err) { globalThis.DOMException = err.constructor }
}
module.exports = globalThis.DOMException