Title: util: callbackify throws when function length or name property is deleted · Issue #67745 · nodejs/node · GitHub
Open Graph Title: util: callbackify throws when function length or name property is deleted · Issue #67745 · nodejs/node
X Title: util: callbackify throws when function length or name property is deleted · Issue #67745 · nodejs/node
Description: Version v26.13.0 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem util What steps will reproduce the bug? node -e "async function fn() {} delete fn.length; util.callbackify(fn)" // deleting fn.name throws as well How often does i...
Open Graph Description: Version v26.13.0 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem util What steps will reproduce the bug? node -e "async function fn() {} delete fn.length; util.callbackify(fn)" // deleting...
X Description: Version v26.13.0 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem util What steps will reproduce the bug? node -e "async function fn() {} delete fn.length; util.callbackify(fn)" /...
Opengraph URL: https://github.com/nodejs/node/issues/67745
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"util: callbackify throws when function length or name property is deleted","articleBody":"### Version\n\nv26.13.0\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.19045.0 x64\n```\n\n### Subsystem\n\nutil\n\n### What steps will reproduce the bug?\n\n```js\nnode -e \"async function fn() {} delete fn.length; util.callbackify(fn)\"\n// deleting fn.name throws as well\n```\n\n### How often does it reproduce? Is there a required condition?\n\nalways\n\n### What is the expected behavior? Why is that the expected behavior?\n\n`util.callbackify(fn)` should return the callbackified function without throwing (`util.promisify` does the same already)\n\n\n### What do you see instead?\n\n```\nnode:util:422\n if (typeof descriptors.length.value === 'number') {\n ^\n\nTypeError: Cannot read properties of undefined (reading 'value')\n at Object.callbackify (node:util:422:33)\n at [eval]:1:47\n at runScriptInThisContext (node:internal/vm:219:10)\n at node:internal/process/execution:485:12\n at [eval]-wrapper:6:24\n at runScriptInContext (node:internal/process/execution:483:60)\n at evalFunction (node:internal/process/execution:317:30)\n at evalTypeScript (node:internal/process/execution:329:3)\n at node:internal/main/eval_string:71:3\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/outslept","@type":"Person","name":"outslept"},"datePublished":"2026-11-24T11:49:35Z","url":"https://github.com/nodejs/node/issues/67745"}
| 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:0c115161-8625-9b2e-c70d-1a5c9abd2923 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9802:23514F:2D3612:3B7C28:6B061659 |
| html-safe-nonce | 9d574cdc11a889969051bbb380cda61b7f6dd1bb7ee4beaaf502f474735b8a13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODAyOjIzNTE0RjoyRDM2MTI6M0I3QzI4OjZCMDYxNjU5IiwidmlzaXRvcl9pZCI6IjcxMzgxNTI3OTc4Mjg0MjEyMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | eaa6b4ec123fbe4de3eaed20421a73fc08317cc56f5e965f383c05ffdcd50905 |
| hovercard-subject-tag | issue:6581092116 |
| 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/nodejs/node/67745/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5be5897f930b62601fdcfad3002ba9ccdaaf0c1a4769853f7b1d3f0a618d2a3/nodejs/node/issues/67745 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5be5897f930b62601fdcfad3002ba9ccdaaf0c1a4769853f7b1d3f0a618d2a3/nodejs/node/issues/67745 |
| og:image:alt | Version v26.13.0 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem util What steps will reproduce the bug? node -e "async function fn() {} delete fn.length; util.callbackify(fn)" // deleting... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | outslept |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| 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 | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| 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