stream: use validateBuffer for BYOB reader view · nodejs/node@374f7e2 · GitHub
Skip to content

Commit 374f7e2

Browse files
greenheadHQaduh95
authored andcommitted
stream: use validateBuffer for BYOB reader view
The same check is already spelled validateBuffer(view, 'view') in ReadableStreamBYOBRequest.respondWithNewView(), and the thrown error is unchanged. Signed-off-by: greenhead <shren0812@gmail.com> PR-URL: #65046 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d7805e0 commit 374f7e2

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

lib/internal/webstreams/readablestream.js

Lines changed: 1 addition & 11 deletions

0 commit comments

Comments
 (0)