Skip to content

Commit

Permalink
use ArrayBuffer.isView(
Browse files Browse the repository at this point in the history
  • Loading branch information
tsctx committed Jan 4, 2024
1 parent 863b7e8 commit d2d4031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function processBlobParts (parts, options) {

// 3. Append the result of UTF-8 encoding s to bytes.
bytes.push(encoder.encode(s))
} else if (types.isArrayBuffer(element) || types.isTypedArray(element)) {
} else if (ArrayBuffer.isView((element) || types.isArrayBuffer(element)) {

Check failure on line 282 in lib/fetch/file.js

View workflow job for this annotation

GitHub Actions / lint

Parsing error: Unexpected token {
// 2. If element is a BufferSource, get a copy of the
// bytes held by the buffer source, and append those
// bytes to bytes.
Expand Down

0 comments on commit d2d4031

Please sign in to comment.