rem: if (response == undefined) { output += "1\n" + context + "\n"; } else { var length = response["split"] ? response.split("\n").length + 1 : 2; output += length + "\n" + context + "\n" + response + "\n"; }  var slices = output.length / 256 + 1; for (var i = 0; i < slices; i++) { var slice = output.slice(i * 256, (i+1) * 256); self.outstream.writeString(slice, slice.length); self.outstream.flush(); } }; 
add: if (response == undefined) { output += "1\n" + context + "\n"; } else { var length = response["split"] ? response.split("\n").length + 1 : 2; output += length + "\n" + context + "\n" + response + "\n"; }  var slices = output.length / 256 + 1;  for (var i = 0; i < slices; i++) { var slice = output.slice(i * 256, (i + 1) * 256); self.outstream.writeString(slice, slice.length); self.outstream.flush(); } }; 
context: 	var respond = function(context, method, response) {	    var output = method + " ";	    if (response == undefined) {	        output += "1\n" + context + "\n";	    } else {	        var length = response["split"] ? response.split("\n").length + 1 : 2;	        output += length + "\n" + context + "\n" + response + "\n";	    }			var slices = output.length / 256 + 1;  // Fail on powers of 2 :)		for (var i = 0; i < slices; i++) {			var slice = output.slice(i * 256, (i+1) * 256);	    	self.outstream.writeString(slice, slice.length);	    	self.outstream.flush();		}	};
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3428/3d58fefd2379fe19ae5bc4540e46171c91481d00/socketListener.js/buggy/firefox/src/extension/components/socketListener.js