Remove `hasOwnProperty` test.

Not invoked; used mostly internally.