Skip to content

Commit 5536927

Browse files
committed
Use null-prototype object
1 parent a92a6a5 commit 5536927

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/java-props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface Properties {
55
}
66

77
export function parse(str: string): Properties {
8-
const result: Properties = {};
8+
const result: Properties = Object.create(null);
99
const lr = new LineReader(str);
1010
let line;
1111
while ((line = lr.readLine()) !== undefined) {

0 commit comments

Comments
 (0)