index.js 214 B

12345678
  1. 'use strict';
  2. module.exports = () => {
  3. const _ = Error.prepareStackTrace;
  4. Error.prepareStackTrace = (_, stack) => stack;
  5. const stack = new Error().stack.slice(1);
  6. Error.prepareStackTrace = _;
  7. return stack;
  8. };