Skip to content

Commit

Permalink
trying to isolate the crash a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Yoo committed Jun 6, 2011
1 parent 2c53a1d commit f095311
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/browser-evaluate.rkt
Expand Up @@ -173,10 +173,11 @@ function sendRequest(url,callback,postData) {
return;
}
if (req.status === 200 && req.statusText === 'Try again') {
req.abort();
delete req.onreadystateschange;
setTimeout(function() { sendRequest(url, callback, postData); }, 0);
return;
}
delete req.onreadystateschange;
callback(req);
}
if (req.readyState == 4) return;
Expand Down Expand Up @@ -208,9 +209,9 @@ var comet = function() {
sendRequest("/eval",
function(req) {
// debug:
if (window.console && typeof(console.log) === 'function') {
console.log(req.responseText);
}
//if (window.console && typeof(console.log) === 'function') {
// console.log(req.responseText);
//}
try {
var invoke = eval(req.responseText)();
} catch (e) {
Expand Down

0 comments on commit f095311

Please sign in to comment.