On 3/15/17 5:35 PM, Henri Sivonen wrote:
What's the current outlook on letting chrome JS read ArrayBuffers as opposed to JS strings where the high 8 bits are zero and the low 8 bits are the byte values from XPCOM streams?
I see no reason not to allow that. We'd just add this on nsIScriptableInputStream, I assume, so we don't have to modify every single stream impl....
There are some issues around doing this sort of thing on mainthread and the resulting sync I/O in some cases, of course. But I don't think they're any worse than with nsIConverterInputStream anyway.
-Boris _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform