lib/types/ByteString.js
/**
     * The result of converting an IDL ByteString value to an ECMAScript value
     * is a String value whose length is the length of the ByteString,
     * and the value of each element of which is the value of the corresponding
     * element of the ByteString.
     * @param V {any} the value to be converted.
     */
The result of converting an IDL ByteString value to an ECMAScript value
is a String value whose length is the length of the ByteString,
and the value of each element of which is the value of the corresponding
element of the ByteString.
@param V {any} the value to be converted.
The result of converting an IDL ByteString value to an ECMAScript value is a String value whose length is the length of the ByteString and the value of each element of which is the value of the corresponding element of the ByteString . @param V { any } the value to be converted .
function converter(V) {
        var x = String(V);
        for (var i = x.length - 1; i >= 0; i--) {
            if (x.charCodeAt(i) > 255) {
                throw new TypeError();
            }
        }
        return ''.concat(x);
    }
function converter ( V ) { var x = String ( V ) ; for ( var i = x . length - 1 ; i >= 0 ; i -- ) { if ( x . charCodeAt ( i ) > 255 ) { throw new TypeError ( ) ; } } return '' . concat ( x ) ; }
The result of converting an IDL ByteString value to an ECMAScript value
 is a String value whose length is the length of the ByteString,
 and the value of each element of which is the value of the corresponding
 element of the ByteString.
The result of converting an IDL ByteString value to an ECMAScript value is a String value whose length is the length of the ByteString and the value of each element of which is the value of the corresponding element of the ByteString .
//Let x be ToString(V). //If the value of any element of x is greater than 255, //then throw a TypeError. //Return an IDL ByteString value whose length is the length of x, //and where the value of each element is the value of the corresponding element of x.