Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

function-name.js 725B

123456789101112131415161718
  1. 'use strict';
  2. var DESCRIPTORS = require('../internals/descriptors');
  3. var hasOwn = require('../internals/has-own-property');
  4. var FunctionPrototype = Function.prototype;
  5. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  6. var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
  7. var EXISTS = hasOwn(FunctionPrototype, 'name');
  8. // additional protection from minified / mangled / dropped function names
  9. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  10. var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
  11. module.exports = {
  12. EXISTS: EXISTS,
  13. PROPER: PROPER,
  14. CONFIGURABLE: CONFIGURABLE
  15. };