node_modules/es-abstract/2017/Set.js in immosquare-cleaner-0.1.32 vs node_modules/es-abstract/2017/Set.js in immosquare-cleaner-0.1.38

- old
+ new

@@ -1,11 +1,9 @@ 'use strict'; -var GetIntrinsic = require('get-intrinsic'); +var $TypeError = require('es-errors/type'); -var $TypeError = GetIntrinsic('%TypeError%'); - var IsPropertyKey = require('./IsPropertyKey'); var SameValue = require('./SameValue'); var Type = require('./Type'); // IE 9 does not throw in strict mode when writability/configurability/extensibility is violated @@ -25,10 +23,10 @@ throw new $TypeError('Assertion failed: `O` must be an Object'); } if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: `P` must be a Property Key'); } - if (Type(Throw) !== 'Boolean') { + if (typeof Throw !== 'boolean') { throw new $TypeError('Assertion failed: `Throw` must be a Boolean'); } if (Throw) { O[P] = V; // eslint-disable-line no-param-reassign if (noThrowOnStrictViolation && !SameValue(O[P], V)) {