Title: TypeError: Attempting to define property on object that is not extensible. · Issue #9030 · getsentry/sentry-javascript · GitHub
Open Graph Title: TypeError: Attempting to define property on object that is not extensible. · Issue #9030 · getsentry/sentry-javascript
X Title: TypeError: Attempting to define property on object that is not extensible. · Issue #9030 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/9030
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: Attempting to define property on object that is not extensible.","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/vue\n\n### SDK Version\n\n7.69.0\n\n### Framework Version\n\n3.2.47\n\n### Link to Sentry event\n\nhttps://crosscountry-app.sentry.io/issues/4477507356/\n\n### SDK Setup\n\n```\r\nimport {init} from \"@sentry/vue\";\r\n...\r\ninit({\r\n app: vue_app,\r\n dsn: sentry_dsn,\r\n release: \"xxx\"\r\n});\r\n```\n\n### Steps to Reproduce\n\nPass a frozen callback function to `setTimeout`, using Safari v16.6:\r\n\r\n```javascript\r\nfunction callback() {\r\n console.log(\"Hello\");\r\n}\r\nsetTimeout(callback, 50); // OK\r\nObject.freeze(callback);\r\nsetTimeout(callback, 50); // BOOM!\r\n```\r\nStacktrace:\r\n> TypeError: Attempting to define property on object that is not extensible.\r\n> c — object.js:63\r\n> ze — helpers.js:129\r\n> (anonymous function) — trycatch.js:100\r\n> Global Code\r\n\r\nIn @sentry/utils/esm/object.js:\r\n```javascript\r\nfunction markFunctionWrapped(wrapped, original) {\r\n const proto = original.prototype || {};\r\n wrapped.prototype = original.prototype = proto; // \u003c-- this line throws the exception\r\n addNonEnumerableProperty(wrapped, '__sentry_original__', original);\r\n}\r\n```\n\n### Expected Result\n\nNo exception.\n\n### Actual Result\n\nAn exception is thrown by Sentry.","author":{"url":"https://github.com/jamesdiacono","@type":"Person","name":"jamesdiacono"},"datePublished":"2023-09-15T02:08:56Z","url":"https://github.com/getsentry/sentry-javascript/issues/9030"}
| 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:9a7f4dd9-2b5d-d289-ef9e-c8def9b63c67 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9774:2B850B:5BD7C:81DFD:6B046979 |
| html-safe-nonce | 9e59d8dd3b029ab31322e04e754821698487cd32a16f86c35cd752f2b385fa7d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Nzc0OjJCODUwQjo1QkQ3Qzo4MURGRDo2QjA0Njk3OSIsInZpc2l0b3JfaWQiOiIyNzQxMzIwNTY4NDY4MTcxMTI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0ee0e352d1e5712ae6c47833806f861aafdefc55ad842cc4c4f5e9256dd8b4b2 |
| hovercard-subject-tag | issue:1897582035 |
| 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/getsentry/sentry-javascript/9030/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51526df0cae6ab8f52184310df2d8d0a4a3f3e9e8b701a89f8ce59ac5534e611/getsentry/sentry-javascript/issues/9030 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51526df0cae6ab8f52184310df2d8d0a4a3f3e9e8b701a89f8ce59ac5534e611/getsentry/sentry-javascript/issues/9030 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jamesdiacono |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width