source: node_modules/node-domexception/.history/index_20210527203947.js@ b78c0c1

main
Last change on this file since b78c0c1 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 262 bytes
Line 
1const { MessageChannel } = require('worker_threads')
2
3if (!globalThis.DOMException) {
4 const port = new MessageChannel().port1
5 const ab = new ArrayBuffer()
6 try { port.postMessage(ab, [ab, ab]) }
7 catch (err) { globalThis.DOMException = err.constructor }
8}
Note: See TracBrowser for help on using the repository browser.