ecowden / pluto.js

JavaScript Dependency Injection
MIT License
8 stars 3 forks source link

Add circular dependency detection #33

Open boetjen opened 7 years ago

boetjen commented 7 years ago

Pluto bootstrapping fails without evidence when two or more functions are dependent on each other. Perhaps an error could be thrown if this situation occurs.

serviceOne.js module.exports = function(serviceTwo) { ... }

serviceTwo.js module.exports = function(serviceOne) { ... }