Title: NODE_V8_COVERAGE not output when Error thrown during initialization · Issue #29570 · nodejs/node · GitHub
Open Graph Title: NODE_V8_COVERAGE not output when Error thrown during initialization · Issue #29570 · nodejs/node
X Title: NODE_V8_COVERAGE not output when Error thrown during initialization · Issue #29570 · nodejs/node
Description: Version: 12.0.0 -> 12.9.1. Platform: OSX Subsystem: coverage/process Sometime between node@v11.15.0 and node@12.0.0 , NODE_V8_COVERAGE seems to have stopped outputting if a script throws in the first tick, as an example: throw Error('err...
Open Graph Description: Version: 12.0.0 -> 12.9.1. Platform: OSX Subsystem: coverage/process Sometime between node@v11.15.0 and node@12.0.0 , NODE_V8_COVERAGE seems to have stopped outputting if a script throws in the fir...
X Description: Version: 12.0.0 -> 12.9.1. Platform: OSX Subsystem: coverage/process Sometime between node@v11.15.0 and node@12.0.0 , NODE_V8_COVERAGE seems to have stopped outputting if a script throws in the ...
Opengraph URL: https://github.com/nodejs/node/issues/29570
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NODE_V8_COVERAGE not output when Error thrown during initialization","articleBody":"\u003c!--\r\nThank you for reporting a possible bug in Node.js.\r\n\r\nPlease fill in as much of the template below as you can.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify the affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you can.\r\n--\u003e\r\n\r\n* **Version**: `12.0.0` -\u003e `12.9.1`.\r\n* **Platform**: OSX\r\n* **Subsystem**: coverage/process\r\n\r\n\u003c!-- Please provide more details below this comment. --\u003e\r\n\r\nSometime between `node@v11.15.0` and `node@12.0.0` , `NODE_V8_COVERAGE` seems to have stopped outputting if a script throws in the first tick, as an example:\r\n\r\n```js\r\nthrow Error('error');\r\nif (true) {\r\n console.info('hello world');\r\n} else {\r\n console.info('goodnight moon');\r\n}\r\n```\r\n\r\nThis script will output coverage:\r\n\r\n```js\r\nprocess.exit(1);\r\nif (true) {\r\n console.info('hello world');\r\n} else {\r\n console.info('goodnight moon');\r\n}\r\n```\r\n\r\nI've noticed, similarly, that `prepareStackTrace` appears to not be called, which is why I'm using timeouts in [the tests here](https://github.com/nodejs/node/pull/29564); I wonder if the root cause might be the same.\r\n\r\nCC: @addaleax, @joyeecheung, @devsnek, @nodejs/testing ","author":{"url":"https://github.com/bcoe","@type":"Person","name":"bcoe"},"datePublished":"2019-09-15T20:56:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/29570/node/issues/29570"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:990bf25d-bd7d-9229-24ae-5b8043953f00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C18E:1C3657:371726:4A02C0:6A4D8ECE |
| html-safe-nonce | 4850895f1ac62a5774ed0e51e97d1d50e5a18a20a6d4673ef9736bc8d571127a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMThFOjFDMzY1NzozNzE3MjY6NEEwMkMwOjZBNEQ4RUNFIiwidmlzaXRvcl9pZCI6IjMzOTMyNDY0Nzc0MjU2NzU5ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a9fc2aa25f2ce784c3bc8f569bb5002d87d582c81fb9488030a70e6c53756b76 |
| hovercard-subject-tag | issue:493785318 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/29570/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dbb44c137841a7f5c7cfbef25f402c4ff1491b13004e1182721ab380c6405221/nodejs/node/issues/29570 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dbb44c137841a7f5c7cfbef25f402c4ff1491b13004e1182721ab380c6405221/nodejs/node/issues/29570 |
| og:image:alt | Version: 12.0.0 -> 12.9.1. Platform: OSX Subsystem: coverage/process Sometime between node@v11.15.0 and node@12.0.0 , NODE_V8_COVERAGE seems to have stopped outputting if a script throws in the fir... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bcoe |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bffd5484f01713a661b03469b77678f72b6574ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width