|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
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.