buffer
buffer copied to clipboard
Buffer.prototype.slice fails in in IE11
When running it in IE11 I get this error:
SCRIPT5045: Assignment to read-only properties is not allowed in strict mode
index.js (1075,1)
As a workaround I can remove 'use strict' and then the error disappears. I have AngularJS 1.7 with browserify.
It's not clear to me why IE11 does not allow assignment to Buffer.prototype.slice since it's our own class, and we don't mark slice as read-only. If someone has an idea, please send a PR.
for people who still need to adapt silly IE11 using webpack1 or something use this package
window.TYPED_ARRAY_SUPPORT = false
can help