boa icon indicating copy to clipboard operation
boa copied to clipboard

Implement call stack size tracking

Open dapper-gh opened this issue 5 years ago • 0 comments

ECMAScript feature Although not strictly in the ECMAScript spec (at least as far as I can find), most engines have a system to track the call stack size and throw an error if it becomes too large. This prevents stack overflows. However, Boa has not implemented this feature, hence why things like this happen: image If call stack size tracking was added, this would help the engine not crash, which is (clearly) a good thing.

Example code

function a() {
  a();
}
a();

dapper-gh avatar Oct 07 '20 03:10 dapper-gh