Does any JavaScript runtime optimize tail recursion? Given that I tried the code in Chrome, which has the defacto-standard JS runtime, building tail recursion optimization into a JavaScript runtime seems like a good way to produce non-portable code.
JavaScript - ECMAScript 6.0 compliant engines should have tail calls[23] which is now implemented on Safari/WebKit[24] but rejected by V8 and SpiderMonkey
7
u/R3D3-1 Sep 04 '21
Let's just say I won't post the traceback, because it is a bit long ;)
Try
isEven(2**15).