项目原始demo,不改动
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

9 lines
233 B

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