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

Handling Circular Structures #62

Open
smizell opened this issue Jul 9, 2015 · 1 comment
Open

Handling Circular Structures #62

smizell opened this issue Jul 9, 2015 · 1 comment
Labels

Comments

@smizell
Copy link
Contributor

smizell commented Jul 9, 2015

This is going to come up quickly, but we need to think about how to handle circular structures.

var minim = require('.minim');

var arr1 = new minim.ArrayElement();
var arr2 = new minim.ArrayElement();

arr1.push(arr2);
arr2.push(arr1);

console.log(arr1.toRefract());

This results in RangeError: Maximum call stack size exceeded.

@kylef
Copy link
Member

kylef commented Aug 24, 2017

I am not sure that we need to do anything here. If a user really wants to use circular referencing they should probably use a ref element to reference itself?

@kylef kylef added the question label Aug 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants