Skip to content

Maximum recursion of procedures is much lower than Scratch #37

Open
@GarboMuffin

Description

@GarboMuffin

Expected Behavior

https://scratch.mit.edu/projects/116680081/ should work

Actual Behavior

It errors with Uncaught RangeError: Maximum call stack size exceeded

This seems to be caused by the project using recursion as an alternative to repeat something 40,000 times.

We are limited by the call stack size of the browser because we use actual JS recursion, whereas Scratch's interpreter uses a list that allows essentially infinite recursion.

Steps to Reproduce

https://turbowarp.org/116680081

Operating System and Browser

Happens in all browsers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions