| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,9 @@ const { | |||
| 5 | 5 | PromiseResolve, | |
| 6 | 6 | SafePromiseAll, | |
| 7 | 7 | SafePromisePrototypeFinally, | |
| 8 | + TypedArrayPrototypeGetBuffer, | ||
| 9 | + TypedArrayPrototypeGetByteOffset, | ||
| 10 | + TypedArrayPrototypeGetByteLength, | ||
| 8 | 11 | Uint8Array, | |
| 9 | 12 | } = primordials; | |
| 10 | 13 | ||
@@ -267,9 +270,10 @@ function newStreamWritableFromWritableStream(writableStream, options = kEmptyObj | |||
| 267 | 270 | } else { | |
| 268 | 271 | chunk = Buffer.from(chunk, encoding); | |
| 269 | 272 | chunk = new Uint8Array( | |
| 270 | - chunk.buffer, | ||
| 271 | - chunk.byteOffset, | ||
| 272 | - chunk.byteLength); | ||
| 273 | + TypedArrayPrototypeGetBuffer(chunk), | ||
| 274 | + TypedArrayPrototypeGetByteOffset(chunk), | ||
| 275 | + TypedArrayPrototypeGetByteLength(chunk), | ||
| 276 | + ); | ||
| 273 | 277 | } | |
| 274 | 278 | } | |
| 275 | 279 | ||
@@ -692,9 +696,10 @@ function newStreamDuplexFromReadableWritablePair(pair = kEmptyObject, options = | |||
| 692 | 696 | } else { | |
| 693 | 697 | chunk = Buffer.from(chunk, encoding); | |
| 694 | 698 | chunk = new Uint8Array( | |
| 695 | - chunk.buffer, | ||
| 696 | - chunk.byteOffset, | ||
| 697 | - chunk.byteLength); | ||
| 699 | + TypedArrayPrototypeGetBuffer(chunk), | ||
| 700 | + TypedArrayPrototypeGetByteOffset(chunk), | ||
| 701 | + TypedArrayPrototypeGetByteLength(chunk), | ||
| 702 | + ); | ||
| 698 | 703 | } | |
| 699 | 704 | } | |
| 700 | 705 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments