Skip to content

Losing first line of stack trace #271

Closed
@superalex

Description

@superalex

I'm using chrome and trying to trace an agular error and the first line is:

at new ProjectsController (http://127.0.0.1:9001/js/app.js?v=1413888176794:14710:7)

There are morelines that work correctly but this one (the first) is ignored when submiting the error to sentry.

I've been checking the computeStackTraceFromStackProp function and I see that:

chrome = /^\s*at (?:((?:\[object object\])?\S+(?: \[as \S+\])?) )?\(?((?:file|https?|chrome-extension):.*?):(\d+)(?::(\d+))?\)?\s*$/i
chrome.exec("    at new ProjectsController (http://127.0.0.1:9001/js/app.js?v=1413888176794:14710:7)")

doesn't recognize the spaces, if I remove the "new" word it works properly.

Metadata

Metadata

Assignees

No one assigned

    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