summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/support/WorkerTerminate.js
blob: 7c99e7ec5605861905847b2c6b73b97b8e6d34a9 (plain)
1
2
3
4
5
6
7
8
9
10
onmessage = function(evt)
{
    for (var i=0; true; i++)
    {
        if (i%1000 == 0)
        {
            postMessage(i);
        }
    }
}