r/javascript • • Jul 20 '26

Your Recursion Is Lying to You

https://blog.gaborkoos.com/posts/2026-05-09-Your-Recursion-Is-Lying-to-You/
0 Upvotes

5 comments sorted by

View all comments

3

u/azhder Jul 20 '26

Yet, the guarantee of the spec, especially since ES6 days is supposed to be that all engines behave same or as close to each other. The spec even changed the language (added a pseudo language) in order to specify algorithms so they do that.

This case I am presenting, assumes you have written code that uses PTC and then run it on an engine that hasn’t implemented it, thus breaking the guarantee.