[fix #78659456] Use vanilla hasOwnProperty method.