| 1 |
if (!globalThis.DOMException) { |
| 2 |
const { MessageChannel } = require('worker_threads') |
| 3 |
const port = new MessageChannel().port1 |
| 4 |
const ab = new ArrayBuffer() |
| 5 |
try { port.postMessage(ab, [ab, ab]) } |
| 6 |
catch (err) { globalThis.DOMException = err.constructor } |
| 7 |
} |
| 8 |
|
| 9 |
module.exports |