Closed adrianheine closed 10 years ago
Thanks. I’m checking this out and will let you know what I find later.
Can you show an example? The pull request affects the dependencies
and required
keywords. I’m having a hard time figuring out a situation where the instance tested would not inherit from Object
.
On the other hand, if there is a use case of this, there may be more places in the code where hasOwnProperty
should be changed.
You might always have an instance which you created with Object.create(null)
.
Ah, yes. I’m writing some tests for this and then I’ll merge your pull request. Thanks.
A validation subject is not necessarily derived from
Object
, and thus might lackhasOwnProperty
.