Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
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.