Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Anonymous Functions from IE are set as undefined #19

Copy link
Copy link

Description

@auchenberg
Issue body actions

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)'
},
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.