Skip to content

getFileName() returns undefined when called using eval #50

@weshouman

Description

@weshouman

What happens:
Bindings fails to get the root dir

Reproduction:
calling bindings through eval
Example: Using webpack and having bindings in a dependency (ie: of zmq)

Analysis:
While getting the file name from the stack trace, getFileName() returns undefined.
As filenames could be stored st[i].getEvalOrigin() not only in st[i].getFileName() based on https://github.com/v8/v8/wiki/Stack-Trace-API

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