Title: zone.js monkey patching of Jasmine's GlobalErrors is a no-op, and would break Jasmine if it wasn't · Issue #63072 · angular/angular · GitHub
Open Graph Title: zone.js monkey patching of Jasmine's GlobalErrors is a no-op, and would break Jasmine if it wasn't · Issue #63072 · angular/angular
X Title: zone.js monkey patching of Jasmine's GlobalErrors is a no-op, and would break Jasmine if it wasn't · Issue #63072 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? zone.js Is this a regression? Yes Description zone.js attempts to monkey-patch Jasmine's GlobalErrors, for reasons that aren't entirely clear to me. It's a no-op because it happens a...
Open Graph Description: Which @angular/* package(s) are the source of the bug? zone.js Is this a regression? Yes Description zone.js attempts to monkey-patch Jasmine's GlobalErrors, for reasons that aren't entirely clear ...
X Description: Which @angular/* package(s) are the source of the bug? zone.js Is this a regression? Yes Description zone.js attempts to monkey-patch Jasmine's GlobalErrors, for reasons that aren't entirel...
Opengraph URL: https://github.com/angular/angular/issues/63072
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"zone.js monkey patching of Jasmine's GlobalErrors is a no-op, and would break Jasmine if it wasn't","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nzone.js\n\n### Is this a regression?\n\nYes\n\n### Description\n\nzone.js attempts to monkey-patch Jasmine's `GlobalErrors`, for reasons that aren't entirely clear to me. It's a no-op because it happens after Jasmine has already constructed its `GlobalErrors` instance. If the monkey-patching occurred early enough to have any effect, it would crash Jasmine beginning with the next jasmine-core release because [GlobalErrors has required constructor parameters](https://github.com/jasmine/jasmine/blob/42cca93926638d3660efc356b14d3ca3d531e09d/src/core/GlobalErrors.js#L10C25-L10C34) and [zone.js's monkey patch fails to forward them](https://github.com/angular/angular/blob/660444fbf296ce45f0a33d443e804237fa9bb8cc/packages/zone.js/lib/jasmine/jasmine.ts#L65)\n\nMy recommendation is to stop monkey patching `GlobalErrors` altogether. Presumably it's not doing anything important, if nobody noticed that it wasn't working. And any monkey patching creates a situation where any future version of jasmine-core could be incompatible, since you're depending on private interfaces that are outside of the scope of semver. So the less of it you can do, the better. But if you have to monkey patch `GlobalErrors`, it would be best to forward all constructor arguments to the real thing.\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n```true\n\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\n\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/sgravrock","@type":"Person","name":"sgravrock"},"datePublished":"2025-08-09T17:34:24Z","url":"https://github.com/angular/angular/issues/63072"}
| 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:ddf4c17d-856a-ed8a-78f7-2b16a674f9c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81CC:2F543F:1861B89:203B151:6B020D54 |
| html-safe-nonce | 204dcc4d51664cd3c9dfdff44efd75ccb2ae98869b412048ad1811903cce514c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUNDOjJGNTQzRjoxODYxQjg5OjIwM0IxNTE6NkIwMjBENTQiLCJ2aXNpdG9yX2lkIjoiNjEzNTM2ODU5NjY3NjgwODAyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 50cbd1e70c1420eb476b000bc9d6a49ecfa9e7b689e1203509cd1d02f697d1e4 |
| hovercard-subject-tag | issue:3306622828 |
| 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/63072/issue_layout |
| twitter:image | https://opengraph.githubassets.com/94662a31805e120acaddbd9382e3160ee0747ecc4e93101df29d2f9ceb44405a/angular/angular/issues/63072 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94662a31805e120acaddbd9382e3160ee0747ecc4e93101df29d2f9ceb44405a/angular/angular/issues/63072 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? zone.js Is this a regression? Yes Description zone.js attempts to monkey-patch Jasmine's GlobalErrors, for reasons that aren't entirely clear ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sgravrock |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width