You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What started as a problem of Uint8Array is Blob. #1014
The following is the test code, please help to answer it:
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible" content="IE=edge"><metaname="viewport" content="width=device-width, initial-scale=1.0"><title>Test</title></head><body><!-- No error is reported if it is not imported --><scriptsrc="https://www.unpkg.com/[email protected]/minified.js"></script><script>varstr='hello world';varn=str.length;varuiArr=newUint8Array(n);for(vari=0;i<n;i++){uiArr[i]=str.charCodeAt(i);}console.log(uiArr);console.log(newBlob([uiArr]));// in ie10 throw error: InvalidStateError</script></body></html>
The text was updated successfully, but these errors were encountered:
Yes, this is an issue. In IE10 and some early IE11 versions, core-js is forced to completely reimplement typed arrays - and native Blob and some other features do not properly work with polyfilled typed arrays.
I'm not sure what should core-js do in this case since adding workarounds for all possible cases is problematic.
I'll think about what can be done - maybe it makes sense to add a wrapper / workaround for Blob, maybe not.
What started as a problem of Uint8Array is Blob. #1014
The following is the test code, please help to answer it:
The text was updated successfully, but these errors were encountered: