Closed hildjj closed 2 years ago
It looks like your Browsers / Browsers (macos-latest, firefox, webpack)
test may have a timing issue. I saw a failure of that test in my fork that went away when I re-ran that test.
Could you do the changes in the build script and re-run them?
Take a look at https://github.com/nodejs/readable-stream/blob/main/build/replacements.mjs.
Things I didn't fix (yet) because they aren't germane to the issue at hand:
src/errors.js
Good work!
It throws when it has been bundled, then loaded in node.
How I found this:
cbor-web
sub-package, I use webpack to pre-bundlecbor
for easy use in the browserTypeError: Cannot destructure property 'AbortController'
abort-controller
, which should only get used in the browser, but because I'm running a bundle, I hit it in nodeabort-controller
unlessglobalThis.AbortController
doesn't existglobalThis.AbortController
check fixes my issueThis is probably an edge case that I hope nobody else runs into, but the fix for my problem shouldn't hurt anyone else.