Title: executionAsyncId doesn't return expected value in context of process.on('unhandledRejection') · Issue #26794 · nodejs/node · GitHub
Open Graph Title: executionAsyncId doesn't return expected value in context of process.on('unhandledRejection') · Issue #26794 · nodejs/node
X Title: executionAsyncId doesn't return expected value in context of process.on('unhandledRejection') · Issue #26794 · nodejs/node
Description: Version: 12.0.0-pre (78162ad) Platform: Darwin geegaw.local 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64 Subsystem: async_hooks https://gist.github.com/isaacs/1f8c5092ba7d...
Open Graph Description: Version: 12.0.0-pre (78162ad) Platform: Darwin geegaw.local 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64 Subsystem: async_hooks htt...
X Description: Version: 12.0.0-pre (78162ad) Platform: Darwin geegaw.local 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64 Subsystem: async_hooks htt...
Opengraph URL: https://github.com/nodejs/node/issues/26794
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"executionAsyncId doesn't return expected value in context of process.on('unhandledRejection')","articleBody":"Version: 12.0.0-pre (78162ad570bfb991e2416c7850be546848a6fcc0)\r\nPlatform: Darwin geegaw.local 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64\r\nSubsystem: async_hooks\r\n\r\nhttps://gist.github.com/isaacs/1f8c5092ba7d67d9a5f4e342ff7778b7\r\n\r\nI am building a domain-like implementation to catch errors using async_hooks. However, the executionAsyncId is reset to 0 on an `unhandledRejection` event, making it impossible for me to know if I ought to handle the error or crash.\r\n\r\nThe weird thing is that it only fails in this way when the promise rejection is within an async hop, such as a setTimeout. If the promise rejection happens at the top level, then I get the expected value of `1` as the executionAsyncId.\r\n\r\nThis is preventing me moving node-tap off of core domains. Fewer modules using domains means that it could be deprecated sooner :)","author":{"url":"https://github.com/isaacs","@type":"Person","name":"isaacs"},"datePublished":"2019-03-20T01:48:33Z","url":"https://github.com/nodejs/node/issues/26794"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:16547933-8faa-0d3b-7598-816c2fceda2b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AEA:2B3418:55A96F:6F5885:6AED2819 |
| html-safe-nonce | 66a0969312c6ae4d51a06052bc332fdc455c57a6630e1051267554aebfa3b260 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUVBOjJCMzQxODo1NUE5NkY6NkY1ODg1OjZBRUQyODE5IiwidmlzaXRvcl9pZCI6Ijg2NTY3ODUyNTI5NTAwMjYyNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0287f9d2af0c759ee929288372da0d359be10827e191fa794b000acbbffd4df3 |
| hovercard-subject-tag | issue:423028568 |
| 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/26794/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f9deace805daa8de9e27225c8cc0097fe0a936347f86e6be71ffb1d31e2c437c/nodejs/node/issues/26794 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f9deace805daa8de9e27225c8cc0097fe0a936347f86e6be71ffb1d31e2c437c/nodejs/node/issues/26794 |
| og:image:alt | Version: 12.0.0-pre (78162ad) Platform: Darwin geegaw.local 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64 Subsystem: async_hooks htt... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | isaacs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2 |
| 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 | 98b41fa4b5635ceb45a4c54320fced73817ff290 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width