jhiesey / stream-http

Streaming node http in the browser
MIT License
354 stars 62 forks source link

use queueMicrotask #120

Closed feross closed 3 years ago

feross commented 3 years ago

The queueMicrotask package works in any environment that supports Promise. I kept process.nextTick for IE11. It will increase the bundle size in other environments but that's okay until/if this package drops IE11 support.

jhiesey commented 3 years ago

Seems to cause a syntax error on old browsers. We'll need to rethink this a bit.