From 2888fa158d67c1419199f152326e12a05618b53e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 28 Aug 2026 17:30:31 +0100 Subject: Create objects without prototypes when used as map with arbitrary keys --- lib/xml/reader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/xml/reader.js') diff --git a/lib/xml/reader.js b/lib/xml/reader.js index 41aabde..2797323 100644 --- a/lib/xml/reader.js +++ b/lib/xml/reader.js @@ -42,7 +42,7 @@ function readString(xmlString, namespaceMap) { } }); - var convertedAttributes = {}; + var convertedAttributes = Object.create(null); _.forEach(element.attributes, function(attribute) { convertedAttributes[convertName(attribute)] = attribute.value; }); -- cgit v1.2.3