Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] Handle infinite recursion in Std.string() #8377

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

RealyUniqueName
Copy link
Member

Fixes #6728

@RealyUniqueName RealyUniqueName changed the title Handle infinite recursion in Std.string() [wip] Handle infinite recursion in Std.string() Jun 5, 2019
@skial skial mentioned this pull request Jun 6, 2019
1 task
@Simn
Copy link
Member

Simn commented Jun 9, 2019

Could you update the branch please?

@Simn Simn closed this Jun 9, 2019
@Simn Simn reopened this Jun 9, 2019
@lunabunn
Copy link

It is standard behavior in other languages to throw a Stack Overflow Exception when, for instance, trying to stringify a self-referencing object. I don't see why this is bug, nor why this should be "fixed"...

But whatever, if this were to be implemented, the default recursion limit should DEFINITELY be much higher than 5.

@Simn Simn added the waiting-for-feedback We need more information to deal with this issue. label Feb 17, 2020
@Simn
Copy link
Member

Simn commented Feb 17, 2020

Getting stack overflows from recursive value printing is not a good user experience. We should definitely account for that.

As for the limit, I agree that the 5 is a bit low. We can increase that and maybe make it configurable through a define.

Also, the branch needs an update.

@RealyUniqueName RealyUniqueName modified the milestones: Release 4.2, Backlog Dec 16, 2020
@Simn Simn modified the milestones: Backlog, Later Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-feedback We need more information to deal with this issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map.toString stackoverflow
3 participants