René's URL Explorer Experiment


Title: Invalid output for static private fields · Issue #1131 · evanw/esbuild · GitHub

Open Graph Title: Invalid output for static private fields · Issue #1131 · evanw/esbuild

X Title: Invalid output for static private fields · Issue #1131 · evanw/esbuild

Description: It appears references to already-initialized private static members can get lifted out of the lexical scope where their names exist. Input export class Foo { static #bar = 1; static baz = Foo.#bar; } version 0.11.6 minify false format es...

Open Graph Description: It appears references to already-initialized private static members can get lifted out of the lexical scope where their names exist. Input export class Foo { static #bar = 1; static baz = Foo.#bar;...

X Description: It appears references to already-initialized private static members can get lifted out of the lexical scope where their names exist. Input export class Foo { static #bar = 1; static baz = Foo.#bar;...

Opengraph URL: https://github.com/evanw/esbuild/issues/1131

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid output for static private fields","articleBody":"It appears references to already-initialized private static members can get lifted out of the lexical scope where their names exist.\r\n\r\n\u003cdetails open>\r\n\u003csummary>Input\u003c/summary>\r\n\r\n```js\r\nexport class Foo {\r\n  static #bar = 1;\r\n\r\n  static baz = Foo.#bar;\r\n}\r\n```\r\n\r\n\u003cdl>\r\n  \u003cdt>version\u003c/dt>\r\n  \u003cdd>0.11.6\u003c/dd>\r\n  \u003cdt>minify\u003c/dt>\r\n  \u003cdd>false\u003c/dd>\r\n  \u003cdt>format\u003c/dt>\r\n  \u003cdd>esm\u003c/dd>\r\n  \u003cdt>target\u003c/dt>\r\n  \u003cdd>none / esnext / maybe others do it too\u003c/dd>\r\n\u003c/dl>\r\n\r\n\u003c/details>\r\n\r\n\u003cdetails open>\r\n\u003csummary>Output\u003c/summary>\r\n\r\n```js\r\nvar __defProp = Object.defineProperty;\r\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;\r\nvar __publicField = (obj, key, value) => {\r\n  __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\r\n  return value;\r\n};\r\n\r\nvar _Foo = class {\r\n  static #bar;\r\n};\r\nvar Foo = _Foo;\r\nFoo.#bar = 1;\r\n__publicField(Foo, \"baz\", _Foo.#bar);\r\nexport {\r\n  Foo\r\n};\r\n```\r\n\r\n\u003c/details>\r\n\r\nThe condition for this seems to be the presence of a reference to `Foo` (or `this`) in a static initializer (which may or may not be private). I think it’s the same set of scenarios where it’s altering the value of `Foo.name`.","author":{"url":"https://github.com/bathos","@type":"Person","name":"bathos"},"datePublished":"2021-04-09T15:20:42Z","url":"https://github.com/evanw/esbuild/issues/1131"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b873d3e0-0075-afe1-631b-8a6a9b72c8e1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAE42:66C72:72A4:A958:6AEDA3AC
html-safe-nonce9e10bf571b0a27b5d4a05fc2711d483c98b9ef98b7ee05a2343d177b6457c20b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTQyOjY2QzcyOjcyQTQ6QTk1ODo2QUVEQTNBQyIsInZpc2l0b3JfaWQiOiI0NTgyNTM5NzQ1MDg1NDY1NTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace049e5b6db4ee06bb5e9422f45b31d2e2619460e1b1f0717b738add05399ad82
hovercard-subject-tagissue:854621859
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/evanw/esbuild/1131/issue_layout
twitter:imagehttps://opengraph.githubassets.com/664e926d05be1701d1f1d89abc6fd8dcd979fa9aca98dbcba2cd4834ac24b2ed/evanw/esbuild/issues/1131
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/664e926d05be1701d1f1d89abc6fd8dcd979fa9aca98dbcba2cd4834ac24b2ed/evanw/esbuild/issues/1131
og:image:altIt appears references to already-initialized private static members can get lifted out of the lexical scope where their names exist. Input export class Foo { static #bar = 1; static baz = Foo.#bar;...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebathos
hostnamegithub.com
expected-hostnamegithub.com
None9f51e3b6c7a190e426e641ae15acbc58dd1ac2003e96b58879bbc298e213dbf3
turbo-cache-controlno-preview
go-importgithub.com/evanw/esbuild git https://github.com/evanw/esbuild.git
octolytics-dimension-user_id406394
octolytics-dimension-user_loginevanw
octolytics-dimension-repository_id61137153
octolytics-dimension-repository_nwoevanw/esbuild
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id61137153
octolytics-dimension-repository_network_root_nwoevanw/esbuild
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7060660810b587033ea861b8aa67beb72c8e6542
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/evanw/esbuild/issues/1131#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fevanw%2Fesbuild%2Fissues%2F1131
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fevanw%2Fesbuild%2Fissues%2F1131
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=evanw%2Fesbuild
Reloadhttps://github.com/evanw/esbuild/issues/1131
Reloadhttps://github.com/evanw/esbuild/issues/1131
Reloadhttps://github.com/evanw/esbuild/issues/1131
evanwhttps://github.com/evanw
esbuildhttps://github.com/evanw/esbuild
Codehttps://github.com/evanw/esbuild
Issues561 (561)https://github.com/evanw/esbuild/issues
Pull requests84 (84)https://github.com/evanw/esbuild/pulls
Actionshttps://github.com/evanw/esbuild/actions
Security and quality3 (3)https://github.com/evanw/esbuild/security
Insightshttps://github.com/evanw/esbuild/pulse
https://github.com/evanw/esbuild
New issuehttps://github.com/login?return_to=https://github.com/evanw/esbuild/issues/1131
New issuehttps://github.com/login?return_to=https://github.com/evanw/esbuild/issues/1131
#1134https://github.com/evanw/esbuild/pull/1134
Invalid output for static private fieldshttps://github.com/evanw/esbuild/issues/1131#top
#1134https://github.com/evanw/esbuild/pull/1134
https://github.com/bathos
bathoshttps://github.com/bathos
on Apr 9, 2021https://github.com/evanw/esbuild/issues/1131#issue-854621859
https://github.com/evanw
evanwhttps://github.com/evanw
on Apr 10, 2021https://github.com/evanw/esbuild/issues/1131#issuecomment-817083107
also has this problemhttps://www.typescriptlang.org/play?target=99#code/KYDwDg9gTgLgBAYwDYEMDOa4DEITgbwCg440YUYBLBOAYgCMUo4BeOARgG5DjTyqajAF6tsuAHQMm3AL6EgA
microsoft/TypeScript#41788https://github.com/microsoft/TypeScript/issues/41788
https://github.com/bathos
bathoshttps://github.com/bathos
on Apr 10, 2021https://github.com/evanw/esbuild/issues/1131#issuecomment-817084554
https://github.com/evanw
evanwhttps://github.com/evanw
on Apr 10, 2021https://github.com/evanw/esbuild/issues/1131#issuecomment-817085526
microsoft/TypeScript#42663https://github.com/microsoft/TypeScript/pull/42663
https://github.com/bathos
bathoshttps://github.com/bathos
on Apr 10, 2021https://github.com/evanw/esbuild/issues/1131#issuecomment-817088099
https://github.com/evanw
evanwhttps://github.com/evanw
on Apr 10, 2021https://github.com/evanw/esbuild/issues/1131#issuecomment-817103296
#478https://github.com/evanw/esbuild/issues/478
https://github.com/bathos
bathoshttps://github.com/bathos
on Apr 10, 2021https://github.com/evanw/esbuild/issues/1131#issuecomment-817107853
evanwhttps://github.com/evanw
completedhttps://github.com/evanw/esbuild/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1134https://github.com/evanw/esbuild/pull/1134
on Apr 10, 2021https://github.com/evanw/esbuild/issues/1131#event-4577402564
Sign up for freehttps://github.com/signup?return_to=https://github.com/evanw/esbuild/issues/1131
Sign in to commenthttps://github.com/login?return_to=https://github.com/evanw/esbuild/issues/1131
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.