diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-28 17:30:31 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-28 17:30:31 +0100 |
| commit | 2888fa158d67c1419199f152326e12a05618b53e (patch) | |
| tree | c239ed44678ba87f29ff9b84625cf1a0ba48a68a /lib/xml | |
| parent | 31f0c370be4b95ac4fa285fea3be970606735f16 (diff) | |
Create objects without prototypes when used as map with arbitrary keys
Diffstat (limited to 'lib/xml')
| -rw-r--r-- | lib/xml/reader.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; }); |
