.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / capture-stack-trace / index.js
1 'use strict';
2
3 module.exports = Error.captureStackTrace || function (error) {
4         var container = new Error();
5
6         Object.defineProperty(error, 'stack', {
7                 configurable: true,
8                 get: function getStack() {
9                         var stack = container.stack;
10
11                         Object.defineProperty(this, 'stack', {
12                                 value: stack
13                         });
14
15                         return stack;
16                 }
17         });
18 };