I just wasted over an hour because I was initializing a BinaryData with a string instead of an ArrayBuffer.
I would like to add a typecheck to the bytes argument in the BinaryData constructor to throw an error if something other than an ArrayBuffer is provided. We cannot use strict typing to catch this in the compiler, because the argument is different for SWF and JS. Is this a violation of PAYG? It’s sort-of just in case code, but not really because it’s protecting against errors. Thoughts? Other solutions? Harbs