polyfill UInt8Array.forEach for IE (#1981)
This commit is contained in:
parent
0053124ca4
commit
16c6a65bf2
|
|
@ -20,5 +20,11 @@ if (!Uint8Array.prototype.slice) {
|
||||||
writable: true,
|
writable: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (!Uint8Array.prototype.forEach) {
|
||||||
|
Object.defineProperty(Uint8Array.prototype, "forEach", {
|
||||||
|
value: Array.prototype.forEach,
|
||||||
|
writable: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export * from "./index";
|
export * from "./index";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue