inspect-source.js 346 B

123456789101112
  1. var store = require('../internals/shared-store');
  2. var functionToString = Function.toString;
  3. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  4. if (typeof store.inspectSource != 'function') {
  5. store.inspectSource = function (it) {
  6. return functionToString.call(it);
  7. };
  8. }
  9. module.exports = store.inspectSource;