mrhenry / polyfill-library

MIT License
7 stars 1 forks source link

Improves `URL` polyfill to work without `TypedArray.prototype.slice/indexOf` #73

Closed mhassan1 closed 2 months ago

mhassan1 commented 2 months ago

This PR updates the URL polyfill to not depend on TypedArray.prototype.slice or TypedArray.prototype.indexOf, which may not be available in all engines. It also reverts changes to the ArrayBuffer polyfill from https://github.com/mrhenry/polyfill-library/pull/62 to avoid loading the entire ArrayBuffer polyfill in engines that don't need it. See https://github.com/mrhenry/polyfill-library/pull/59#issuecomment-2248512421.