Title: Prototype properties non enumerable · Issue #782 · microsoft/TypeScript · GitHub
Open Graph Title: Prototype properties non enumerable · Issue #782 · microsoft/TypeScript
X Title: Prototype properties non enumerable · Issue #782 · microsoft/TypeScript
Description: To make Typescript Class more like default ES classes it could be interesting to make every prototype property non enumerable. I've made a little snippet that do simply the work and could be added to the __extend, etc. : __proto = this._...
Open Graph Description: To make Typescript Class more like default ES classes it could be interesting to make every prototype property non enumerable. I've made a little snippet that do simply the work and could be added ...
X Description: To make Typescript Class more like default ES classes it could be interesting to make every prototype property non enumerable. I've made a little snippet that do simply the work and could be ad...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/782
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Prototype properties non enumerable","articleBody":"To make Typescript Class more like default ES classes it could be interesting to make every prototype property non enumerable.\n\nI've made a little snippet that do simply the work and could be added to the `__extend`, etc. :\n\n```\n__proto = this.__proto || function (proto) {\n if (Object.getOwnPropertyNames) {//only when ES5\n var keys = Object.getOwnPropertyNames(proto);\n var key;\n for (var i = 0, l = keys.length; i \u003c l; ++i) {\n key = keys[i];\n desc = Object.getOwnPropertyDescriptor(proto, key);\n desc.enumerable = false;\n Object.defineProperty(proto, key, desc);\n }\n }\n }\n\n//generated code\nvar Greeter = (function () {\n function Greeter() {}\n Greeter.prototype.foo = function () {};\n __proto(Greeter.prototype);\n return Greeter;\n}())\n```\n","author":{"url":"https://github.com/jpolo","@type":"Person","name":"jpolo"},"datePublished":"2014-09-30T13:10:02Z","url":"https://github.com/microsoft/TypeScript/issues/782"}
| 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:b657fbda-2ae7-bbb4-f47f-ec17fbde59bb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBA6:172B92:8FA655:C1B41D:6B00E62A |
| html-safe-nonce | 8a919f1410e48438cf14712cd7a8926a7979d61fd12d7423d193123937cb2315 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkE2OjE3MkI5Mjo4RkE2NTU6QzFCNDFEOjZCMDBFNjJBIiwidmlzaXRvcl9pZCI6Ijc1MjQ2ODE0MDc1ODM1NDQ4NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d581d44d6e78d2853cf6667d4486b19345c5b71ddc51dfdbd827291aa719cce4 |
| hovercard-subject-tag | issue:44441349 |
| 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/microsoft/TypeScript/782/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fef8cbd7cb1422119ed61dbe7edff5edb0e785e005bad42047f6b5e541a9fb9c/microsoft/TypeScript/issues/782 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fef8cbd7cb1422119ed61dbe7edff5edb0e785e005bad42047f6b5e541a9fb9c/microsoft/TypeScript/issues/782 |
| og:image:alt | To make Typescript Class more like default ES classes it could be interesting to make every prototype property non enumerable. I've made a little snippet that do simply the work and could be added ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jpolo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width