Title: zone.js propertyPatch breaks spread for objects with Symbol keys. · Issue #44095 · angular/angular · GitHub
Open Graph Title: zone.js propertyPatch breaks spread for objects with Symbol keys. · Issue #44095 · angular/angular
X Title: zone.js propertyPatch breaks spread for objects with Symbol keys. · Issue #44095 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When compiling with optimizations: true in angular.json it'll enable esbuild which will transpile to ES2015 which causes spre...
Open Graph Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When compiling with optimizations: true in angular.json it'll enable esbuild which wi...
X Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When compiling with optimizations: true in angular.json it'll enable esbuild ...
Opengraph URL: https://github.com/angular/angular/issues/44095
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"zone.js propertyPatch breaks spread for objects with Symbol keys.","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nDon't known / other\n\n### Is this a regression?\n\nNo\n\n### Description\n\nWhen compiling with `optimizations: true` in angular.json it'll enable esbuild which will transpile to ES2015 which causes spreads to be replaced with a polyfill. zone.js has a property patch that overrides `Object.defineProperties` where it's using `Object.keys()` to iterate over the properties of the object to merge into the spread. This causes all symbol keys to be omitted: `Object.keys({ a: 1, b: Symbol() }) === ['a']`\r\n\r\nhttps://github.com/angular/angular/blob/a92a89b0eb127a59d7e071502b5850e57618ec2d/packages/zone.js/lib/browser/define-property.ts#L38-L43\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_No response_\n\n### Please provide the environment you discovered this bug in\n\n_No response_\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/wesselvdv","@type":"Person","name":"wesselvdv"},"datePublished":"2021-11-06T11:04:39Z","url":"https://github.com/angular/angular/issues/44095"}
| 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:f46d8fa7-d0e3-5de0-6840-1880890e62d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB7A:3CBB3E:1C6FB1:241D87:6B00FCCA |
| html-safe-nonce | b4d1c3ea6899562ae565b73e301effc38404c27d6ad52ff52270ab20fe290c2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjdBOjNDQkIzRToxQzZGQjE6MjQxRDg3OjZCMDBGQ0NBIiwidmlzaXRvcl9pZCI6IjUxNjIzNDE0OTY2MTUxNDA1NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 40cc1efedc27ded8d798936b10ab8af2c01ed508411a8727a048b18265bb8d5c |
| hovercard-subject-tag | issue:1046485266 |
| 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/44095/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96880fe977a9954bc923d63053b2bca9fab5209ed39cafbf9168c7d9de28e2e7/angular/angular/issues/44095 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96880fe977a9954bc923d63053b2bca9fab5209ed39cafbf9168c7d9de28e2e7/angular/angular/issues/44095 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When compiling with optimizations: true in angular.json it'll enable esbuild which wi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wesselvdv |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width