Skip to content

Commit 1f54ace

Browse files
author
DavertMik
committed
added proxies to resolve circular dependencies
1 parent 0a27b34 commit 1f54ace

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/container.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ function loadSupportObject(modulePath, supportObjectName) {
420420
if (typeof obj === 'function') {
421421
// If it's a class (constructor function)
422422
if (obj.prototype && obj.prototype.constructor === obj) {
423-
return new obj()
423+
const ClassName = obj;
424+
return new ClassName();
424425
}
425426
// If it's a regular function
426427
return obj()

0 commit comments

Comments
 (0)