Skip to content

Commit c4801ca

Browse files
authored
Merge pull request #1242 from ajv-validator/refactor
ignore proto properties
2 parents f2b1e3d + 988982d commit c4801ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/dot/dependencies.jst

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
, $ownProperties = it.opts.ownProperties;
2020

2121
for ($property in $schema) {
22+
if ($property == '__proto__') continue;
2223
var $sch = $schema[$property];
2324
var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;
2425
$deps[$property] = $sch;

0 commit comments

Comments
 (0)