| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d7805e0 commit 374f7e2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1060,17 +1060,7 @@ class ReadableStreamBYOBReader { | |||
| 1060 | 1060 | async read(view, options = kEmptyObject) { | |
| 1061 | 1061 | if (!isReadableStreamBYOBReader(this)) | |
| 1062 | 1062 | throw new ERR_INVALID_THIS('ReadableStreamBYOBReader'); | |
| 1063 | - if (!isArrayBufferView(view)) { | ||
| 1064 | - throw new ERR_INVALID_ARG_TYPE( | ||
| 1065 | - 'view', | ||
| 1066 | - [ | ||
| 1067 | - 'Buffer', | ||
| 1068 | - 'TypedArray', | ||
| 1069 | - 'DataView', | ||
| 1070 | - ], | ||
| 1071 | - view, | ||
| 1072 | - ); | ||
| 1073 | - } | ||
| 1063 | + validateBuffer(view, 'view'); | ||
| 1074 | 1064 | validateObject(options, 'options', kValidateObjectAllowObjectsAndNull); | |
| 1075 | 1065 | ||
| 1076 | 1066 | const viewByteLength = ArrayBufferViewGetByteLength(view); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments