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

fix: undefined line in branches and functions #139

Merged
merged 1 commit into from May 5, 2021

Conversation

hugomrdias
Copy link
Contributor

When bundling this file with esbuild and getting the v8 coverage with playwright _branchesToIstanbul and _functionsToIstanbul hanged.

These 2 functions actually should throw an error but it is swallowed for some reason.

This PR just ignores if it can't find the source line for the current branch or function.

When bundling this [file](https://github.com/browserify/node-util/blob/master/util.js) with esbuild and getting the v8 coverage with playwright `_branchesToIstanbul` and `_functionsToIstanbul` hanged.

These 2 functions actually should throw an error but it is swallowed for some reason.

This PR just ignores if it can't find the source line for the current branch or function.
@bcoe bcoe changed the title fix: fix undefined line in branches and functions fix: undefined line in branches and functions May 5, 2021
@bcoe bcoe merged commit f5ed83d into istanbuljs:master May 5, 2021
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.

None yet

2 participants