Changeset 79a0317 for imaps-frontend/node_modules/es-abstract/2024/Set.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2024/Set.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var IsPropertyKey = require('./IsPropertyKey');5 var isPropertyKey = require('../helpers/isPropertyKey'); 6 6 var SameValue = require('./SameValue'); 7 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // IE 9 does not throw in strict mode when writability/configurability/extensibility is violated … … 20 21 21 22 module.exports = function Set(O, P, V, Throw) { 22 if ( Type(O) !== 'Object') {23 if (!isObject(O)) { 23 24 throw new $TypeError('Assertion failed: `O` must be an Object'); 24 25 } 25 if (! IsPropertyKey(P)) {26 if (!isPropertyKey(P)) { 26 27 throw new $TypeError('Assertion failed: `P` must be a Property Key'); 27 28 }
Note:
See TracChangeset
for help on using the changeset viewer.