Re: [idl] ByteString

Anne van Kesteren:
> Very cool! There's a but, however. The "x modulo 256" trick is not in
> line with XMLHttpRequest, which throws for elements greater than 0xFF.
> (Although there is one case where it currently does not throw,
> getResponseHeader(), I kind of hope implementations are willing to
> change that.)

OK, changed to throw TypeError when any element of the string is > 255.

> "ByteString is only suitable for interfacing with protocols that use
> bytes and strings interchangeably, such as HTTP."

Thanks, added.

Received on Monday, 25 June 2012 01:54:38 UTC