2 ms·
Someone should tell Ecma then: https://tc39.es/ecma262/multipage/ecmascript-language-functions-and-classes.html#sec-tail-position-calls https://tc39.es/ecma262/
by tadfisher 4y ago
Someone should tell Ecma then: https://tc39.es/ecma262/multipage/ecmascript-language-functions-and-classes.html#sec-tail-position-calls https://tc39.es/ecma262/multipage/ecmascript-language-functi...
I was wrong, though, tail calls are in ES14, and eliminating them is probably not implemented anywhere yet.
Edit: Wrong again, tail-call optimizations are in WebKit; iOS has had them since iOS 12 according to this: https://kangax.github.io/compat-table/es6/#test-proper_tail_calls_(tail_call_optimisation) https://kangax.github.io/compat-table/es6/#test-proper_tail_...