Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2021/OrdinaryHasProperty.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var IsPropertyKey = require('./IsPropertyKey');6 var Type = require('./Type');5 var isObject = require('../helpers/isObject'); 6 var isPropertyKey = require('../helpers/isPropertyKey'); 7 7 8 8 // https://262.ecma-international.org/6.0/#sec-ordinaryhasproperty 9 9 10 10 module.exports = function OrdinaryHasProperty(O, P) { 11 if ( Type(O) !== 'Object') {11 if (!isObject(O)) { 12 12 throw new $TypeError('Assertion failed: Type(O) is not Object'); 13 13 } 14 if (! IsPropertyKey(P)) {14 if (!isPropertyKey(P)) { 15 15 throw new $TypeError('Assertion failed: P must be a Property Key'); 16 16 }
Note:
See TracChangeset
for help on using the changeset viewer.