Title: util: support classes in util.deprecate() · nodejs/node@295d1ea · GitHub
Open Graph Title: util: support classes in util.deprecate() · nodejs/node@295d1ea
X Title: util: support classes in util.deprecate() · nodejs/node@295d1ea
Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.
Open Graph Description: Classes cannot be instantiated without new, but util.deprecate() uses Function.prototype.apply(). This commit uses new.target to detect constructor calls, allowing classes to be deprecated. PR-URL...
X Description: Classes cannot be instantiated without new, but util.deprecate() uses Function.prototype.apply(). This commit uses new.target to detect constructor calls, allowing classes to be deprecated. PR-URL...
Opengraph URL: /nodejs/node/commit/295d1ea016c4d66322a9c2fd6540fea3df19b8a6
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/commit/:name(/*path) |
| route-controller | commit |
| route-action | show |
| fetch-nonce | v2:01474187-1bf0-2849-dd05-bcd9b399f6ad |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | AD94:34B6FA:210A926:2D78423:696AC200 |
| html-safe-nonce | 722b49a867ae0febc26a469f458acb4ba340ea0779107c1b3f676692eecebd16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDk0OjM0QjZGQToyMTBBOTI2OjJENzg0MjM6Njk2QUMyMDAiLCJ2aXNpdG9yX2lkIjoiMjU2MjkwMDkzMTExMTQ2OTU2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e8d4824f52a3bc4e8877700184a21b840ce9d6ceedd551ee93a2f811150602f5 |
| hovercard-subject-tag | repository:27193779 |
| github-keyboard-shortcuts | repository,commits,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/nodejs/node/commit/295d1ea016 |
| twitter:image | https://opengraph.githubassets.com/832d0350a422dc7cdd0e37a567f9c8e73e5db2c9e5ed3a14e064589d6ba2fede/nodejs/node/commit/295d1ea016c4d66322a9c2fd6540fea3df19b8a6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/832d0350a422dc7cdd0e37a567f9c8e73e5db2c9e5ed3a14e064589d6ba2fede/nodejs/node/commit/295d1ea016c4d66322a9c2fd6540fea3df19b8a6 |
| og:image:alt | Classes cannot be instantiated without new, but util.deprecate() uses Function.prototype.apply(). This commit uses new.target to detect constructor calls, allowing classes to be deprecated. PR-URL... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:updated_time | 1470846662 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 986b6a1d774985095564e64d6963d11f094da3d0e2bfda2ab1a27d63662eb033 |
| turbo-cache-control | no-cache |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | 89ad2112b9c4e11df6a0c13c8c1f8eedd36b0977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width