zhgdyunapp/node_modules/core-js/internals/function-uncurry-this-accessor.js

10 lines
380 B
JavaScript
Raw Normal View History

2023-06-19 09:02:35 +08:00
var uncurryThis = require('../internals/function-uncurry-this');
var aCallable = require('../internals/a-callable');
module.exports = function (object, key, method) {
try {
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
} catch (error) { /* empty */ }
};