Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Cycle check#716

Open
aachex wants to merge 4 commits intojson-iterator:masterfrom
aachex:cycle-check
Open

Cycle check#716
aachex wants to merge 4 commits intojson-iterator:masterfrom
aachex:cycle-check

Conversation

@aachex
Copy link

@aachex aachex commented Sep 7, 2025

As described in issue #696, cyclic dependencies between structs cause a stack overflow. In this PR, I have added a hasCycle(v) function to check an object for cycles before marshaling it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant