Worker thread stack is smaller than it is available on main thread, so we should verify that it's not exhausted by infinite JS recursion.
Created attachment 25481 [details] proposed patch
Comment on attachment 25481 [details] proposed patch r=me
Committed revision 38779.