rem: d = stream.read(1).charCodeAt(0); 
add: var d = stream.read(1).charCodeAt(0); 
context: function streamToBase64(stream, writer) {    while (stream.available()) {        var data = [];        while (data.length < BASE64CHUNK && stream.available()) {            d = stream.read(1).charCodeAt(0);            // reading a 0 results in NaN, compensate.            data = data.concat(isNaN(d) ? 0 : d);        }        writer.write(toBase64(data));    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/084925db5b72be2989728adfa783e4e2e56b9390/nsXmlRpcClient.js/buggy/extensions/xml-rpc/src/nsXmlRpcClient.js