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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0318b8c70772f1cef1cd80f8dab2f70f1fd54712/head.js/buggy/tools/test-harness/xpcshell-simple/head.js