no mainstream js runtime supports tail call optimization.

The function itself is being optimized, but the recursion may be something we want to avoid.

We should likely throw a benchmark together and compare, the cost before the PR with after. If it is still better across common usage patterns then we should consider this. Or see what can be done to improve it.

This sounds like fun, I will make myself available if you want.