3 for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
4 var s = new String("abc");
8 onmessage = function(evt)
12 if (evt.data == "ping")
14 else if (evt.data == "freeze")
16 else if (evt.data == "close")
18 else if (/eval.+/.test(evt.data)) {
20 postMessage(evt.data.substr(5) + ": " + eval(evt.data.substr(5)));
22 postMessage(evt.data.substr(5) + ": " + ex);