Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/InstallErrorCause.js
r0c6b92a r79a0317 6 6 var Get = require('./Get'); 7 7 var HasProperty = require('./HasProperty'); 8 var Type = require('./Type'); 8 9 var isObject = require('../helpers/isObject'); 9 10 10 11 // https://262.ecma-international.org/13.0/#sec-installerrorcause 11 12 12 13 module.exports = function InstallErrorCause(O, options) { 13 if ( Type(O) !== 'Object') {14 if (!isObject(O)) { 14 15 throw new $TypeError('Assertion failed: Type(O) is not Object'); 15 16 } 16 17 17 if ( Type(options) === 'Object'&& HasProperty(options, 'cause')) {18 if (isObject(options) && HasProperty(options, 'cause')) { 18 19 var cause = Get(options, 'cause'); 19 20 CreateNonEnumerableDataPropertyOrThrow(O, 'cause', cause);
Note:
See TracChangeset
for help on using the changeset viewer.