rem: var _res = null; var cont = function(r) { res = r; }  var f = window[serverResponse.__name](cont); 
add: var res = null; var cont = function(r) {    if(r == undefined) r = {}; res = r; } var f = eval(serverResponse.__name); 
context: function _remoteCallHandler(kappa, request) {  return function() {    if (request.readyState == isComplete) {     // FIXME: this case apparently triggers if we leave the page.     var serverResponse = JSON.parse(_base64decode(request.responseText.replace('\n', '')));     if ((serverResponse instanceof Object) && ('__continuation' in serverResponse)) {        // it's a continuation        var _res = null;        var cont = function(r) { res = r; }        // FIXME: does window[] necessarily look up functions?        var f = window[serverResponse.__name](cont);// Not a tuple any more//        f.apply(f, _tuple_as_list(serverResponse.__arg));        f.apply(f, [serverResponse.__arg]);        var request_ = _newXMLHttpRequest();        request_.open('POST', location.href, true);        request_.onreadystatechange = _remoteCallHandler(kappa, request_);        request_.setRequestHeader('Content-Type',                                  'application/x-www-form-urlencoded');        request_.send("__continuation=" + serverResponse.__continuation +                       "&__result=" + _base64encode(JSON.stringify(_res)));      }      else {        // it's the final result: return it.        kappa(serverResponse);      }    }  }}
meta: 3248	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3248/94aef411c537e0a7da6ac3988523d04eec7d7e99/jslib.js/buggy/lib/js/jslib.js