mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 11:10:22 +08:00
8 lines
291 B
JavaScript
8 lines
291 B
JavaScript
export default function callsites() {
|
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
Error.prepareStackTrace = (_, stack) => stack;
|
|
const stack = new Error().stack.slice(1); // eslint-disable-line unicorn/error-message
|
|
Error.prepareStackTrace = _prepareStackTrace;
|
|
return stack;
|
|
}
|