node_modules/es-abstract/2022/Set.js in immosquare-cleaner-0.1.60 vs node_modules/es-abstract/2022/Set.js in immosquare-cleaner-0.1.61
- old
+ new
@@ -1,13 +1,14 @@
'use strict';
var $TypeError = require('es-errors/type');
-var IsPropertyKey = require('./IsPropertyKey');
+var isPropertyKey = require('../helpers/isPropertyKey');
var SameValue = require('./SameValue');
-var Type = require('./Type');
+var isObject = require('../helpers/isObject');
+
// IE 9 does not throw in strict mode when writability/configurability/extensibility is violated
var noThrowOnStrictViolation = (function () {
try {
delete [].length;
return true;
@@ -17,13 +18,13 @@
}());
// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw
module.exports = function Set(O, P, V, Throw) {
- if (Type(O) !== 'Object') {
+ if (!isObject(O)) {
throw new $TypeError('Assertion failed: `O` must be an Object');
}
- if (!IsPropertyKey(P)) {
+ if (!isPropertyKey(P)) {
throw new $TypeError('Assertion failed: `P` must be a Property Key');
}
if (typeof Throw !== 'boolean') {
throw new $TypeError('Assertion failed: `Throw` must be a Boolean');
}