odin-javascript-exercises/node_modules/callsites/index.js

9 lines
233 B
JavaScript
Raw Normal View History

2017-12-15 10:56:14 -08:00
'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;
};