rem: var runable = {Run : threadProc, id : i}; 
add: var runable = {run : threadProc, id : i}; 
context: function runThreads() {    print("  printed from main thread. foo is "+foo);    var threads = new Array(THREAD_COUNT);    var i;    for(i = 0; i < THREAD_COUNT; i++) {        var runable = {Run : threadProc, id : i};        threads[i] = new Thread(runable, 0,                                 nsIThread.PRIORITY_NORMAL,                                nsIThread.SCOPE_GLOBAL,                                nsIThread.STATE_JOINABLE);    }    print("  printed from main thread. foo is "+foo);    // var main_thread = threads[0].currentThread;    for(i = THREAD_COUNT-1; i >= 0; i--) {        // main_thread.sleep(1);        threads[i].join();    }    print("  printed from main thread. foo is "+foo);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/110ba9e499c16a924b50e6928500b9d41d7b3d7e/threads.js/buggy/js/src/xpconnect/tests/js/old/threads.js