var dict = { hasOwnProperty : null, __proto__ : null }; Object.prototype.hasOwnProperty.call(dict, 'hasOwnProperty'); // true dict.hasOwnProperty('hasOwnProperty'); // TypeError: dict.hasOwnProperty is not a function dict.valueOf(); // TypeError: dict.valueOf is not a function