You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in the process of adding Tail Call Optimization to my language written in JavaScript, but keep getting stack overflow errors. But the problem is that it's not the whole stack trace, it stripped from duplicated frames. Since the stack trace should have more than 1000 frames.
I have a recursive function called 3000 times to overflow the stuck in Bun (in Node.js it happen with 900 calls), is there a way to dump the whole stack? So I can examine where the recursion happen?
I've tried to see the stack in the browser, but when I added breakpoint on exception, the tab crashed. Node.js also shows stripped stack trace.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm in the process of adding Tail Call Optimization to my language written in JavaScript, but keep getting stack overflow errors. But the problem is that it's not the whole stack trace, it stripped from duplicated frames. Since the stack trace should have more than 1000 frames.
I have a recursive function called 3000 times to overflow the stuck in Bun (in Node.js it happen with 900 calls), is there a way to dump the whole stack? So I can examine where the recursion happen?
I've tried to see the stack in the browser, but when I added breakpoint on exception, the tab crashed. Node.js also shows stripped stack trace.
Beta Was this translation helpful? Give feedback.
All reactions