Title: In JS, extra circular reference errors when referring to a missing property on `module` · Issue #26268 · microsoft/TypeScript · GitHub
Open Graph Title: In JS, extra circular reference errors when referring to a missing property on `module` · Issue #26268 · microsoft/TypeScript
X Title: In JS, extra circular reference errors when referring to a missing property on `module` · Issue #26268 · microsoft/TypeScript
Description: I think this error is wrong, a result of #26236 combined with (probably) #25732. Here's a repro based on lodash: var freeModule = module.nodeType; var Buffer = module.nodeType ? root.Buffer : undefined; /** * Creates a clone of `buffer`....
Open Graph Description: I think this error is wrong, a result of #26236 combined with (probably) #25732. Here's a repro based on lodash: var freeModule = module.nodeType; var Buffer = module.nodeType ? root.Buffer : undef...
X Description: I think this error is wrong, a result of #26236 combined with (probably) #25732. Here's a repro based on lodash: var freeModule = module.nodeType; var Buffer = module.nodeType ? root.Buffer : u...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/26268
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"In JS, extra circular reference errors when referring to a missing property on `module`","articleBody":"I think this error is wrong, a result of #26236 combined with (probably) #25732. Here's a repro based on lodash:\r\n\r\n```\r\nvar freeModule = module.nodeType;\r\nvar Buffer = module.nodeType ? root.Buffer : undefined;\r\n\r\n/**\r\n * Creates a clone of `buffer`.\r\n *\r\n * @private\r\n * @param {Buffer} buffer The buffer to clone.\r\n * @param {boolean} [isDeep] Specify a deep clone.\r\n * @returns {Buffer} Returns the cloned buffer.\r\n */\r\nfunction cloneBuffer(buffer, isDeep) {\r\n}\r\n\r\nmodule.exports = cloneBuffer;\r\n```\r\n\r\n**Expected behavior:**\r\nNo error on either type reference to Buffer in a param tag.\r\n\r\n**Actual behavior:**\r\nError on both, and both say they have a circular reference error.","author":{"url":"https://github.com/sandersn","@type":"Person","name":"sandersn"},"datePublished":"2018-08-07T18:05:01Z","url":"https://github.com/microsoft/TypeScript/issues/26268"}
| 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:54939f20-dd8a-0580-ec0d-298c115e633f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFEC:172B92:23E8342:2FD9DE1:6B01981C |
| html-safe-nonce | bed0026fde62dbf9ac5355fd637a1286bf6fb7de76578cd416e293e2434716ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkVDOjE3MkI5MjoyM0U4MzQyOjJGRDlERTE6NkIwMTk4MUMiLCJ2aXNpdG9yX2lkIjoiODEwMjEyNzM5OTYxNDkxMjU0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1ab7dad3b726444ef3378ba60740019b0ddd55198f1eee17ef5a075c26eab072 |
| hovercard-subject-tag | issue:348428683 |
| 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/26268/issue_layout |
| twitter:image | https://opengraph.githubassets.com/04dc4ff7504c2861ea1105b3c5a763f3fc16921c2bc9b92948b8a6f1f0ae2c06/microsoft/TypeScript/issues/26268 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/04dc4ff7504c2861ea1105b3c5a763f3fc16921c2bc9b92948b8a6f1f0ae2c06/microsoft/TypeScript/issues/26268 |
| og:image:alt | I think this error is wrong, a result of #26236 combined with (probably) #25732. Here's a repro based on lodash: var freeModule = module.nodeType; var Buffer = module.nodeType ? root.Buffer : undef... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sandersn |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width