node_modules/es-abstract/2022/GetMethod.js in immosquare-cleaner-0.1.60 vs node_modules/es-abstract/2022/GetMethod.js in immosquare-cleaner-0.1.61

- old
+ new

@@ -2,19 +2,19 @@ var $TypeError = require('es-errors/type'); var GetV = require('./GetV'); var IsCallable = require('./IsCallable'); -var IsPropertyKey = require('./IsPropertyKey'); +var isPropertyKey = require('../helpers/isPropertyKey'); var inspect = require('object-inspect'); // https://262.ecma-international.org/6.0/#sec-getmethod module.exports = function GetMethod(O, P) { // 7.3.9.1 - if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + if (!isPropertyKey(P)) { + throw new $TypeError('Assertion failed: P is not a Property Key'); } // 7.3.9.2 var func = GetV(O, P);