rem:  eq.processPendingEvents(); eq.stopAcceptingEvents(); eq.processPendingEvents(); 
add: while (thr.hasPendingEvents()) thr.processNextEvent(); 
context: function do_main() {  if (_quit)    return;  dump("*** running event loop\n");  var eq = _eqs.getSpecialEventQueue(_eqs.CURRENT_THREAD_EVENT_QUEUE);  _running_event_loop = true;  eq.eventLoop();  // unblocked via interrupt from do_quit()  _running_event_loop = false;  // process any remaining events before exiting  eq.processPendingEvents();  eq.stopAcceptingEvents();  eq.processPendingEvents();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7d3e7d7acd0e02ae35282023e1bf4f0b80a070bf/head.js/buggy/tools/test-harness/xpcshell-simple/head.js