flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
9
BACK_BACK/node_modules/node-domexception/.history/index_20210527204418.js
generated
vendored
Executable file
9
BACK_BACK/node_modules/node-domexception/.history/index_20210527204418.js
generated
vendored
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue