Skip to content

Commit

Permalink
Fixes for PR #253 to increase browser compat
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Oct 27, 2020
1 parent c573d66 commit a81c869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function fromArrayLike (array) {

function fromArrayView (arrayView) {
if (isInstance(arrayView, Uint8Array)) {
var copy = Uint8Array.from(arrayView)
var copy = new Uint8Array(arrayView)
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)
}
return fromArrayLike(arrayView)
Expand Down

0 comments on commit a81c869

Please sign in to comment.