File tree 1 file changed +1
-2
lines changed
packages/boot/src/booters
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export function isClass(target: any): target is Constructor<any> {
44
44
* and then testing each exported member to see if it's a class or not.
45
45
*
46
46
* @param files An array of string of absolute file paths
47
+ * @param projectRootDir The project root directory
47
48
* @returns {Constructor<{}>[] } An array of Class constructors from a file
48
49
*/
49
50
export function loadClassesFromFiles (
@@ -54,8 +55,6 @@ export function loadClassesFromFiles(
54
55
for ( const file of files ) {
55
56
debug ( 'Loading artifact file %j' , path . relative ( projectRootDir , file ) ) ;
56
57
const moduleObj = require ( file ) ;
57
- // WORKAROUND: use `for in` instead of Object.values().
58
- // See https://github.com/nodejs/node/issues/20278
59
58
for ( const k in moduleObj ) {
60
59
const exported = moduleObj [ k ] ;
61
60
if ( isClass ( exported ) ) {
You can’t perform that action at this time.
0 commit comments