bops
bops copied to clipboard
Firefox Support
I am getting an error in the https://github.com/chrisdickinson/bops/blob/master/typedarray/subarray.js#L4 file when running in firefox.
Just wanted to know if anyone had any ideas, I believe some people are using slice as an alternative but haven't dug into it to far.
TypeError: buf.subarray is not a function
In the firefox inspector it is clear that that Object pass in is a buffer, however it has no subarray method.
The project I am using this via is https://github.com/mcollina/mows
@wolfeidau Is buf
a Uint8Array
? If so, it looks like it should have the subarray method.