Closed mhassan1 closed 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.
URL
TypedArray.prototype.slice
TypedArray.prototype.indexOf
ArrayBuffer
This PR updates the
URL
polyfill to not depend onTypedArray.prototype.slice
orTypedArray.prototype.indexOf
, which may not be available in all engines. It also reverts changes to theArrayBuffer
polyfill from https://github.com/mrhenry/polyfill-library/pull/62 to avoid loading the entireArrayBuffer
polyfill in engines that don't need it. See https://github.com/mrhenry/polyfill-library/pull/59#issuecomment-2248512421.