main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
363 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | const callsites = () => {
|
---|
4 | const _prepareStackTrace = Error.prepareStackTrace;
|
---|
5 | Error.prepareStackTrace = (_, stack) => stack;
|
---|
6 | const stack = new Error().stack.slice(1);
|
---|
7 | Error.prepareStackTrace = _prepareStackTrace;
|
---|
8 | return stack;
|
---|
9 | };
|
---|
10 |
|
---|
11 | module.exports = callsites;
|
---|
12 | // TODO: Remove this for the next major release
|
---|
13 | module.exports.default = callsites;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.