Skip to content

Implement call stack size tracking #809

Closed

Description

@dapper-gh

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();

Activity

  1. added
    A-Enhancement
    on Oct 7, 2020
  2. added
    A-Execution
    on Oct 7, 2020
  3. moved this to To do in Boa pre-v1on Nov 8, 2022
  4. self-assigned this
    on May 5, 2023
  5. moved this from To do to In Progress in Boa pre-v1on May 5, 2023
  6. moved this from In Progress to Done in Boa pre-v1on May 5, 2023
  7. added this to the v0.17.0 milestone on May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-EnhancementA-Execution

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions