From 5dc2f6473c0b799c6b9a093e17ab0648b654f22a Mon Sep 17 00:00:00 2001 From: Hubert B Manilla Date: Fri, 24 Apr 2026 10:54:59 +0100 Subject: [PATCH] Use Object.create for sourceContents --- lib/source-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/source-node.js b/lib/source-node.js index ecee1ae6..4d7cd3ed 100644 --- a/lib/source-node.js +++ b/lib/source-node.js @@ -35,7 +35,7 @@ const isSourceNode = "$$$isSourceNode$$$"; class SourceNode { constructor(aLine, aColumn, aSource, aChunks, aName) { this.children = []; - this.sourceContents = {}; + this.sourceContents = Object.create(null); this.line = aLine == null ? null : aLine; this.column = aColumn == null ? null : aColumn; this.source = aSource == null ? null : aSource;