canConfigureName.js 555 Bytes
"use strict";

require("core-js/modules/es6.object.define-property");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

// IE11 may return an undefined descriptor, but it supports Function#name
var func = function unnamed() {};

var nameDescriptor = Object.getOwnPropertyDescriptor(func, 'name'); // This condition is true in modern browsers that implement Function#name properly

var canConfigureName = !nameDescriptor || nameDescriptor.configurable;
var _default = canConfigureName;
exports.default = _default;