Fix IE 11 handshake split (#4575)
This commit is contained in:
parent
59ada30959
commit
4950495dc4
|
|
@ -16,7 +16,8 @@ if (!Uint8Array.prototype.indexOf) {
|
||||||
}
|
}
|
||||||
if (!Uint8Array.prototype.slice) {
|
if (!Uint8Array.prototype.slice) {
|
||||||
Object.defineProperty(Uint8Array.prototype, "slice", {
|
Object.defineProperty(Uint8Array.prototype, "slice", {
|
||||||
value: Array.prototype.slice,
|
// wrap the slice in Uint8Array so it looks like a Uint8Array.slice call
|
||||||
|
value: (start?: number, end?: number) => new Uint8Array(Array.prototype.slice(start, end)),
|
||||||
writable: true,
|
writable: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue