您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

13 行
363 B

3 年前
  1. 'use strict';
  2. const callsites = () => {
  3. const _prepareStackTrace = Error.prepareStackTrace;
  4. Error.prepareStackTrace = (_, stack) => stack;
  5. const stack = new Error().stack.slice(1);
  6. Error.prepareStackTrace = _prepareStackTrace;
  7. return stack;
  8. };
  9. module.exports = callsites;
  10. // TODO: Remove this for the next major release
  11. module.exports.default = callsites;