Your IP : 3.142.198.108


Current Path : /usr/lib/node_modules/npm/node_modules/capture-stack-trace/
Upload File :
Current File : //usr/lib/node_modules/npm/node_modules/capture-stack-trace/index.js

'use strict';

module.exports = Error.captureStackTrace || function (error) {
	var container = new Error();

	Object.defineProperty(error, 'stack', {
		configurable: true,
		get: function getStack() {
			var stack = container.stack;

			Object.defineProperty(this, 'stack', {
				value: stack
			});

			return stack;
		}
	});
};

?>