Skip to content

Anonymous Functions from IE are set as undefined #19

Description

@auchenberg

I'm currently trying to normalize stack frame function names across javascript engines, by building on top of this library.

Anonymous functions from IE stack frames are filtered out, and the functionName property on the StackFrame object is set to undefined in https://github.com/stacktracejs/error-stack-parser/blob/master/error-stack-parser.js#L65

Knowing that a given function is anonymous is valuable information and shouldn't be filtered out.

Current output:

{ 
    fileName: 'http://localhost:8080/test.html',
    lineNumber: 20,
    columnNumber: 9,
    source: '          at Anonymous function (http://localhost:8080/test.html:20:9)'
},

Expect output:

{ 
    functionName: 'Anonymous function',
    fileName: 'http://localhost:8080/test.html',
    lineNumber: 20,
    columnNumber: 9,
    source: '          at Anonymous function (http://localhost:8080/test.html:20:9)'
},

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions