Title: lib: make SubtleCrypto.supports enumerable by panva · Pull Request #62307 · nodejs/node · GitHub
Open Graph Title: lib: make SubtleCrypto.supports enumerable by panva · Pull Request #62307 · nodejs/node
X Title: lib: make SubtleCrypto.supports enumerable by panva · Pull Request #62307 · nodejs/node
Description: Per WebIDL § 3.7.7, static operations use the same "define the operations" algorithm as regular operations: To define the operations operations of interface or namespace definition on target, given realm realm, run the following steps: For each operation op of operations: If op is not exposed in realm, then continue. Let method be the result of creating an operation function given op, definition, and realm. Let modifiable be false if op is unforgeable and true otherwise. Let desc be the PropertyDescriptor{[[Value]]: method, [[Writable]]: modifiable, [[Enumerable]]: true, [[Configurable]]: modifiable}. Let id be op's identifier. Perform ! DefinePropertyOrThrow(target, id, desc). The [[Enumerable]]: true in step 4 applies to both regular and static operations. JavaScript static class methods are non-enumerable by default, so we need to explicitly set enumerable: true on SubtleCrypto.supports to match the spec just like we do with all other prototype methods.
Open Graph Description: Per WebIDL § 3.7.7, static operations use the same "define the operations" algorithm as regular operations: To define the operations operations of interface or namespace definition on ta...
X Description: Per WebIDL § 3.7.7, static operations use the same "define the operations" algorithm as regular operations: To define the operations operations of interface or namespace definiti...
Opengraph URL: https://github.com/nodejs/node/pull/62307
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:346f021e-5b5b-3fd5-660d-1169813d5ff0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B95A:1929FC:FC2BB8:15D4100:6A4CA06C |
| html-safe-nonce | 1949d06edd4d37e2b92f64a8365e28d8955bb8540b2f89ab38f6ffd463ee48e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTVBOjE5MjlGQzpGQzJCQjg6MTVENDEwMDo2QTRDQTA2QyIsInZpc2l0b3JfaWQiOiI4OTQyODk0NjU4Mjc2MzM1NzI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 50f2ba9dc3350c4b3a045d14f0eb19335f3d3a2dc5e7f157567db9e6d776625a |
| hovercard-subject-tag | pull_request:3413366799 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/pull/62307/files |
| twitter:image | https://avatars.githubusercontent.com/u/241506?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/241506?s=400&v=4 |
| og:image:alt | Per WebIDL § 3.7.7, static operations use the same "define the operations" algorithm as regular operations: To define the operations operations of interface or namespace definition on ta... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width