问题
If I understand correctly, in code below exists recursive reference:
var object = {}
object.nested = object;
console.log(object)
In console I can see infinite reference. So, how does interpreter optimizes this case ? How does this reference works ? Does it cause the memory leaks ? Does it exists depth limit ?
Plunker: http://plnkr.co/edit/QbR3o8cGnXU924nNs0cE
来源:https://stackoverflow.com/questions/40452539/javascript-does-it-exists-depth-limit-when-object-has-reference-to-itself-how