Auto-Commit: 2026-08-26 02:51:07

This commit is contained in:
Jannik committed 2026-08-26 02:51:07 +02:00
1 parent cba518e52a
commit bdd2cbfed3
1071 files changed
+198122

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
if (!globalThis.DOMException) {
try {
const { MessageChannel } = require('worker_threads'),
port = new MessageChannel().port1,
ab = new ArrayBuffer()
port.postMessage(ab, [ab, ab])
} catch (err) {
err.constructor.name === 'DOMException' && (
globalThis.DOMException = err.constructor
)
}
}
module.exports = globalThis.DOMException