non-self referencial cyclical promises?

Benjamin Gruenbaum benjamingr at
Thu Feb 25 08:17:46 UTC 2016

For what it's worth, bluebird promises detect the error and reject with:

TypeError: Chaining cycle detected for promise #<Promise>

So it's both possible and not a performance issue. For this case, a WeakMap
is not needed for this case. .

> We ran into code "in the wild"

Yes, while I've never run into this I've talked to several people who have
ran into this error - so it's definitely "a thing".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list