frontend/.pnpm-store/v3/files/e1/302d9f5b79f12f6dc50981ec3126d4608b36d9399bb76bf8c3b57cd65e4481697d00a782191fca6993162f918030d2e7690c09385d2eeb242363d87ca4436c

12 lines
384 B
Plaintext

/*! blob-to-buffer. MIT License. Jimmy Wärting <https://jimmy.warting.se> */
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