Are any JavaScript engines tail call (TCO) optimized?

后端 未结 6 1341
有刺的猬
有刺的猬 2020-11-27 03:02

I have a tail recursive pathfinding algorithm that I\'ve implemented in JavaScript and would like to know if any (all?) browsers would possibly get stack overflow exceptions

6条回答
  •  感动是毒
    2020-11-27 03:42

    Tail call optimization is now available in LispyScript which compiles to JavaScript. You can read more about it here.

提交回复
热议问题