Skip to content

Commit

Permalink
Allow for relying on Object prototype in steps of the expanded proper…
Browse files Browse the repository at this point in the history
…ties
  • Loading branch information
steveukx committed Dec 30, 2020
1 parent 0877cc8 commit 4e4bc39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/properties-reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ PropertiesReader.prototype.set = function (key, value) {
}

if (!has(source, step)) {
Object.defineProperty(source, step, { value: Object.create(null) });
Object.defineProperty(source, step, { value: {} });
}

source = source[step]
Expand Down

0 comments on commit 4e4bc39

Please sign in to comment.