Skip to content

Commit b48fcfc

Browse files
committed
[INTERNAL] Use Object.create(null) for dynamic maps
1 parent 533f626 commit b48fcfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/commands/tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tree.handler = async function(argv) {
4343
elapsedTime = await getElapsedTime(startTime);
4444
}
4545

46-
const projects = {};
46+
const projects = Object.create(null);
4747
const indentWidth = 4;
4848
await graph.traverseBreadthFirst(async ({project, getDependencies}) => {
4949
const deps = getDependencies().map((dep) => {

0 commit comments

Comments
 (0)