-
Notifications
You must be signed in to change notification settings - Fork 30k
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
NODE_V8_COVERAGE does not fail gracefully when inspector is disabled #29542
Comments
@addaleax I'd like to take a look at this. Up for the |
@shobhitchittora Cool! As you can see from the stack trace, the function that sets up coverage is As for contributing in general, https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md and https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md are probably helpful starting points. And if you run any trouble, feel free to ping me here or on Twitter or IRC (or generally feel free to ask a question in #node-dev on Freenode). |
Thanks @addaleax for the code pointers. It's been some time since I pushed code here ( maybe in 2018 ), hope the guidelines are still the same. Well! I see the docs and guidelines are much better organized now. Great work there! |
@shobhitchittora What’s wrong is that the One way (of multiple ones) to address this might be to watch out for such an exception in JS, and handle it appropriately rather than letting it crash the process. |
Oh! Got it. I've added an try-catch block now and the output is as below -
|
exception handling for the case when profile is not bootstrapped when coverage is enabled. Fixes: nodejs#29542
Add exception handling for the case when profile is not bootstrapped when coverage is enabled. Fixes: #29542 PR-URL: #29552 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Add exception handling for the case when profile is not bootstrapped when coverage is enabled. Fixes: #29542 PR-URL: #29552 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
currently yields
I feel like this should a) print some kind of helpful message and b) maybe only print a warning or so instead of failing to execute the script.
The text was updated successfully, but these errors were encountered: