summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/callsites/index.js
blob: 098a2513a6feddf4c13c36995ce02fbdf0986b13 (plain)
1
2
3
4
5
6
7
8
'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;
};