Skip to content

Commit 5e75197

Browse files
committed
refactor(node): create null prototype object
1 parent 31651d3 commit 5e75197

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const inspectOpts: InspectOptions = Object.keys(process.env)
5555

5656
obj[prop] = value
5757
return obj
58-
}, {})
58+
}, Object.create(null))
5959

6060
/**
6161
* Is stdout a TTY? Colored output is enabled when `true`.

0 commit comments

Comments
 (0)