9 lines
233 B
JavaScript
9 lines
233 B
JavaScript
|
'use strict';
|
||
|
module.exports = function () {
|
||
|
var _ = Error.prepareStackTrace;
|
||
|
Error.prepareStackTrace = function (_, stack) { return stack };
|
||
|
var stack = new Error().stack.slice(1);
|
||
|
Error.prepareStackTrace = _;
|
||
|
return stack;
|
||
|
};
|