Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect module name for eval frames #305

Merged
merged 2 commits into from
Mar 21, 2019
Merged

Detect module name for eval frames #305

merged 2 commits into from
Mar 21, 2019

Conversation

goto-bus-stop
Copy link
Contributor

Fixes #303, where the topmost frame in a stack for an external module was part of an eval() call. When marking aggregate nodes it tried to get the module name of the topmost frame in the module, which would be null for eval frames.

eval frames contain a file path in brackets eval at parentFn (/path.js:X:Y) inside the evalOrigin property, so we can fall back to that.

@goto-bus-stop goto-bus-stop requested a review from AlanSl February 1, 2019 15:48
Copy link
Contributor

@AlanSl AlanSl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (sorry for the late review!)

@goto-bus-stop goto-bus-stop merged commit 2a31da9 into master Mar 21, 2019
admataz pushed a commit that referenced this pull request Mar 28, 2019
* Add failing test for #303

* Detect module name for eval frames
@goto-bus-stop goto-bus-stop deleted the issue-303 branch June 15, 2019 14:43
@goto-bus-stop goto-bus-stop restored the issue-303 branch June 15, 2019 14:43
@goto-bus-stop goto-bus-stop deleted the issue-303 branch June 15, 2019 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants