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.

inspect-source.js 479B

123456789101112131415
  1. 'use strict';
  2. var uncurryThis = require('../internals/function-uncurry-this');
  3. var isCallable = require('../internals/is-callable');
  4. var store = require('../internals/shared-store');
  5. var functionToString = uncurryThis(Function.toString);
  6. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  7. if (!isCallable(store.inspectSource)) {
  8. store.inspectSource = function (it) {
  9. return functionToString(it);
  10. };
  11. }
  12. module.exports = store.inspectSource;