Skip to content

Commit a75f52b

Browse files
authored
Use Object.create for sourceContents (#525)
1 parent 6bf82ff commit a75f52b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/source-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const isSourceNode = "$$$isSourceNode$$$";
3535
class SourceNode {
3636
constructor(aLine, aColumn, aSource, aChunks, aName) {
3737
this.children = [];
38-
this.sourceContents = {};
38+
this.sourceContents = Object.create(null);
3939
this.line = aLine == null ? null : aLine;
4040
this.column = aColumn == null ? null : aColumn;
4141
this.source = aSource == null ? null : aSource;

0 commit comments

Comments
 (0)