Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

bogus frame added to stack trace #52

@acthp

Description

@acthp

I'm not sure what problem augmentStackTraceWithInitialElement is trying to solve, but its effect is to add a bogus frame element pointing to TraceKit. It's particularly bad because it happens via window.onerror, so there's no column information, and so it can't be source-mapped back to TraceKit automatically: if it were I could prune it.

Does TraceKit always add this frame? If so, I can just always prune the first frame when logging the stack. However, I see multiple calls to notifyHandlers, and only one of them calls augmentStackTraceWithInitialElement, so probably I can't ignore it.

I'm also puzzled that an error caught with TraceKit.wrap() is (sometimes) bounced through window.onerror. Not sure what the point of that is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions