rem: res=res.toSource();    stdout+=wrapString(res)+");";  
add: stdout+=res+");\n"; 
context: function egares(resource) {  var resname=argv[0];  var res=new Resource(resname,resource);  var stdout="EGachine.addResource(\n";  res=res.toSource();  // this is buggy since we may use "\" only in a string to wrap wrong lines  // but at least we detect errors (below)  stdout+=wrapString(res)+");";  // check for errors (decoding should result in the resource again)  eval(stdout);  var dec=EGachine.getResource(resname).decode();  if (dec!=resource)    throw new Error("egares is buggy and something went wrong");  // puh ;-) good luck  print(stdout);}
meta: 8182	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8182/734fc1c18e1a5853086a54f64133eac5e276722e/egares.js/buggy/egachine/src/egares.js