bops icon indicating copy to clipboard operation
bops copied to clipboard

Firefox Support

Open wolfeidau opened this issue 10 years ago • 1 comments

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 avatar Apr 16 '14 21:04 wolfeidau

@wolfeidau Is buf a Uint8Array? If so, it looks like it should have the subarray method.

mjackson avatar Aug 26 '14 17:08 mjackson