Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/ToPropertyDescriptor.js
r0c6b92a r79a0317 5 5 var $TypeError = require('es-errors/type'); 6 6 7 var Type = require('./Type');7 var IsCallable = require('./IsCallable'); 8 8 var ToBoolean = require('./ToBoolean'); 9 var IsCallable = require('./IsCallable'); 9 10 var isObject = require('../helpers/isObject'); 10 11 11 12 // https://262.ecma-international.org/5.1/#sec-8.10.5 12 13 13 14 module.exports = function ToPropertyDescriptor(Obj) { 14 if ( Type(Obj) !== 'Object') {15 if (!isObject(Obj)) { 15 16 throw new $TypeError('ToPropertyDescriptor requires an object'); 16 17 }
Note:
See TracChangeset
for help on using the changeset viewer.