Skip to content

Commit

Permalink
Merge pull request #1242 from ajv-validator/refactor
Browse files Browse the repository at this point in the history
ignore proto properties
  • Loading branch information
epoberezkin committed Jul 4, 2020
2 parents f2b1e3d + 988982d commit c4801ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dot/dependencies.jst
Expand Up @@ -19,6 +19,7 @@
, $ownProperties = it.opts.ownProperties;

for ($property in $schema) {
if ($property == '__proto__') continue;
var $sch = $schema[$property];
var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;
$deps[$property] = $sch;
Expand Down

0 comments on commit c4801ca

Please sign in to comment.