You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object.bar is not a circular reference. It's just a reference that has already been seen in object, which is not the same thing.
Also, I expected "handles circular references" to mean they're flagged e.g. with [Circular] like util.inspect, rather than null, which, IMO, is misleading (even though it's documented). I just spent a fair bit of time trying to track down what I assumed was a bug in my code that was causing a value to be set to null only to find that it's not actually null...
The text was updated successfully, but these errors were encountered:
chocolateboy
changed the title
Doesn't correctly handle "circular" references
Doesn't correctly handle repeated references
May 2, 2015
test.js
output
object.bar
is not a circular reference. It's just a reference that has already been seen inobject
, which is not the same thing.Also, I expected "handles circular references" to mean they're flagged e.g. with
[Circular]
likeutil.inspect
, rather thannull
, which, IMO, is misleading (even though it's documented). I just spent a fair bit of time trying to track down what I assumed was a bug in my code that was causing a value to be set to null only to find that it's not actually null...The text was updated successfully, but these errors were encountered: