Title: ZoneAwareError reads original stack despite setting __Zone_Error_ZoneJsInternalStackFrames_policy · Issue #43240 · angular/angular · GitHub
Open Graph Title: ZoneAwareError reads original stack despite setting __Zone_Error_ZoneJsInternalStackFrames_policy · Issue #43240 · angular/angular
X Title: ZoneAwareError reads original stack despite setting __Zone_Error_ZoneJsInternalStackFrames_policy · Issue #43240 · angular/angular
Description: Which @angular/* package(s) are relevant/releated to the feature request? No response Description Zone.js's ZoneAwareError always stores the original error's stack in the constructor by accessing error.stack no matter what the __Zone_Err...
Open Graph Description: Which @angular/* package(s) are relevant/releated to the feature request? No response Description Zone.js's ZoneAwareError always stores the original error's stack in the constructor by accessing e...
X Description: Which @angular/* package(s) are relevant/releated to the feature request? No response Description Zone.js's ZoneAwareError always stores the original error's stack in the constructor by acc...
Opengraph URL: https://github.com/angular/angular/issues/43240
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ZoneAwareError reads original stack despite setting __Zone_Error_ZoneJsInternalStackFrames_policy","articleBody":"### Which @angular/* package(s) are relevant/releated to the feature request?\n\n_No response_\n\n### Description\n\nZone.js's ZoneAwareError always stores the original error's stack in the constructor by accessing error.stack no matter what the __Zone_Error_ZoneJsInternalStackFrames_policy is.\r\n\r\nhttps://github.com/angular/angular/blob/a92a89b0eb127a59d7e071502b5850e57618ec2d/packages/zone.js/lib/common/error-rewrite.ts#L123\r\n\r\nThis can lead to performance overhead in V8 when using [custom stack traces](https://v8.dev/docs/stack-trace-api#customizing-stack-traces) because the prepareStackTrace method runs uneccesarily when constructing errors even if the error's stack will never be accessed.\r\n\r\nIn our project we use the [source-map-support](https://www.npmjs.com/package/source-map-support) package that provides source map support for stack traces. This can be a costy operation first time (seconds), which we want to avoid when the error's stack is never accessed.\n\n### Proposed solution\n\nIf possible only access the original error's stack if it is necessary regarding the __Zone_Error_ZoneJsInternalStackFrames_policy.\n\n### Alternatives considered\n\n.","author":{"url":"https://github.com/vendi95","@type":"Person","name":"vendi95"},"datePublished":"2021-08-24T09:02:14Z","url":"https://github.com/angular/angular/issues/43240"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:8d765c0b-31c0-7db7-86ac-99ce3a7d2c6a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C280:2463BD:1AEA9D0:226BF0C:6B0140C4 |
| html-safe-nonce | 6520604a0a044eecb4b9403b4d49fc14e35483d4ab503f3516faaba6ce362e9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjgwOjI0NjNCRDoxQUVBOUQwOjIyNkJGMEM6NkIwMTQwQzQiLCJ2aXNpdG9yX2lkIjoiMzY2NzM3NjE4ODE5MzU4NzM5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d6521d02abd17f035ebb178b2403a1f0743b9d3c4ad509e22c23513f752727c8 |
| hovercard-subject-tag | issue:977874476 |
| 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/angular/angular/43240/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf1126f65b643e9f245a479c95e0a2ebe09cfb784259d16d0794870900cb05d0/angular/angular/issues/43240 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf1126f65b643e9f245a479c95e0a2ebe09cfb784259d16d0794870900cb05d0/angular/angular/issues/43240 |
| og:image:alt | Which @angular/* package(s) are relevant/releated to the feature request? No response Description Zone.js's ZoneAwareError always stores the original error's stack in the constructor by accessing e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vendi95 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width