Permalink
Browse files

trying to isolate the crash a bit more

  • Loading branch information...
1 parent 2c53a1d commit f095311284b4c94466e78b50551a5277bc8d7156 Danny Yoo committed Jun 6, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 tests/browser-evaluate.rkt
@@ -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;
@@ -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) {

0 comments on commit f095311

Please sign in to comment.