mirror of
https://github.com/oven-sh/setup-bun.git
synced 2026-06-14 22:20:46 +00:00
fix: use node fetch
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
const { MessageChannel } = require('worker_threads')
|
||||
|
||||
if (!globalThis.DOMException) {
|
||||
const port = new MessageChannel().port1
|
||||
const ab = new ArrayBuffer()
|
||||
try { port.postMessage(ab, [ab, ab]) }
|
||||
catch (err) { globalThis.DOMException = err.constructor }
|
||||
}
|
||||
Reference in New Issue
Block a user