UNPKG

@grafana/faro-core

Version:
21 lines 600 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mockStacktraceParser = void 0; const mockStacktraceParser = (err) => { var _a; const frames = []; const stack = (_a = err.stack) !== null && _a !== void 0 ? _a : err.stacktrace; if (stack) { stack.split('\n').forEach((line) => { frames.push({ filename: line, function: '', }); }); } return { frames, }; }; exports.mockStacktraceParser = mockStacktraceParser; //# sourceMappingURL=mockStacktraceParser.js.map