Skip to content

Commit

Permalink
[Robustness] use a null object in modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 12, 2024
1 parent 14f3ef3 commit 8edc266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function walk(root, cb) {

return (function walker(node_) {
var node = immutable ? copy(node_, options) : node_;
var modifiers = {};
var modifiers = { __proto__: null };

var keepGoing = true;

Expand Down

0 comments on commit 8edc266

Please sign in to comment.