rem: if(!expect("REPL",210)) 
add: if(!this.get_response()) return(false); if(!this.expect("REPL3",210)) 
context: function GNATS_replace(pr,field,newval,reason){	if(!this.cmd("REPL",pr,field))		return(false);	if(!this.expect("REPL",212))		return(false);	lines=newval.split(/\r?\n/);	for(i=0; i<lines.length; i++) {		if(!this.socket.send(lines[i].replace(/^\./,'..')+"\r\n")) {			this.error="Error sending data";			this.close();			return(false);		}	}	if(!this.socket.send(".\r\n")) {		this.error="Error sending data";		this.close();		return(true);	}	if(!this.get_response())		return(false);	if(!this.expect("REPL",210,213))		return(false);	if(this.response.code==213) {	// Need to send a reason		var reasonstr;		if(typeof(reason)=='function')			reasonstr=reason();		else			reasonstr=reason;		lines=reasonstr.split(/\r?\n/);		for(i=0; i<lines.length; i++) {			if(!this.socket.send(lines[i].replace(/^\./,'..')+"\r\n")) {				this.error="Error sending data";				this.close();				return(false);			}		}		if(!this.socket.send(".\r\n")) {			this.error="Error sending data";			this.close();			return(true);		}		if(!expect("REPL",210))			return(false);	}	return(true);}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/ea5a17edf5d210b45ee8609500d8ed7f20e47b5d/gnatslib.js/clean/load/gnatslib.js