We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7887112 commit 0e17085Copy full SHA for 0e17085
src/services/DefaultErrorParser.ts
@@ -18,12 +18,13 @@ export class DefaultErrorParser implements IErrorParser {
18
}
19
20
function getStackFrames(context:EventPluginContext, stackFrames:TraceKit.StackFrame[]): IStackFrame[] {
21
+ const anonymous:string = '<anonymous>';
22
var frames:IStackFrame[] = [];
23
24
for (var index = 0; index < stackFrames.length; index++) {
25
var frame = stackFrames[index];
26
frames.push({
- name: frame.func,
27
+ name: (frame.func || anonymous).replace('?', anonymous),
28
parameters: getParameters(frame.args),
29
file_name: frame.url,
30
line_number: frame.line,
0 commit comments