René's URL Explorer Experiment


Title: Report use before definitely defined errors · Issue #5207 · microsoft/TypeScript · GitHub

Open Graph Title: Report use before definitely defined errors · Issue #5207 · microsoft/TypeScript

X Title: Report use before definitely defined errors · Issue #5207 · microsoft/TypeScript

Description: This compiled code will throw a ReferenceError exception by native javascript engine if Class syntax is implemented. It means that TS compiler generate the invalid code. Should be disallow the use of a class before definition like a Let ...

Open Graph Description: This compiled code will throw a ReferenceError exception by native javascript engine if Class syntax is implemented. It means that TS compiler generate the invalid code. Should be disallow the use ...

X Description: This compiled code will throw a ReferenceError exception by native javascript engine if Class syntax is implemented. It means that TS compiler generate the invalid code. Should be disallow the use ...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/5207

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Report use before definitely defined errors","articleBody":"This compiled code will throw a ReferenceError exception by native javascript engine if Class syntax is implemented. It means that TS compiler generate the invalid code. Should be disallow the use of a class before definition like a Let and Const Declaration because Class Declaration does not specified as hoisting target by es6 spec.\n\n``` ts\na; // ts: pass.\n   // js: pass.\nvar a;\nb; // ts: compile error\n   // js: runtime error(ReferenceError).\nlet b;\nc; // ts: compile error\n   // js: runtime error(ReferenceError).\nconst c = void 0;\nf(); // ts: pass.\n     // js: pass.\nfunction f(){}\n\nnew Foo(); // ts: pass.\n           // js: runtime error(ReferenceError)!\n           // Class Declaration is not hoistable.\n           // should be a compile error before throw a runtime error.\nclass Foo {}\n```\n\nhttp://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-statements-and-declarations\nhttp://www.ecma-international.org/ecma-262/6.0/#sec-variable-statement\nhttp://www.2ality.com/2015/02/es6-classes-final.html\n\nI think, this issue is different from #2854 because this issue is based on spec.\n","author":{"url":"https://github.com/falsandtru","@type":"Person","name":"falsandtru"},"datePublished":"2015-10-11T07:42:31Z","url":"https://github.com/microsoft/TypeScript/issues/5207"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:55dd2f9c-79be-5b0c-5829-3cee506ff6ab
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9A56:2F59F2:42634B:5D4C5E:6B00729C
html-safe-noncedd21b373720b96739d496ca5f38b4710d1806074ddf80007d50477621898271b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTU2OjJGNTlGMjo0MjYzNEI6NUQ0QzVFOjZCMDA3MjlDIiwidmlzaXRvcl9pZCI6IjQ4MTMyOTg0MzM3MDYxOTM1NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5ea528d7a7778f92a2bacc9f66491955ab40d837b634e214f117a57cc5df3c41
hovercard-subject-tagissue:110840532
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/microsoft/TypeScript/5207/issue_layout
twitter:imagehttps://opengraph.githubassets.com/83db1d45851d15fe426ff50818718efc653be0ac42d352689da5e69bdb73abb7/microsoft/TypeScript/issues/5207
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/83db1d45851d15fe426ff50818718efc653be0ac42d352689da5e69bdb73abb7/microsoft/TypeScript/issues/5207
og:image:altThis compiled code will throw a ReferenceError exception by native javascript engine if Class syntax is implemented. It means that TS compiler generate the invalid code. Should be disallow the use ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefalsandtru
hostnamegithub.com
expected-hostnamegithub.com
None75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
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
release84e563eb4b55f8fa102f325f117533cee9e3df4a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/5207#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F5207
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%2Fmicrosoft%2FTypeScript%2Fissues%2F5207
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=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/5207
Reloadhttps://github.com/microsoft/TypeScript/issues/5207
Reloadhttps://github.com/microsoft/TypeScript/issues/5207
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/5207
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/5207
Report use before definitely defined errorshttps://github.com/microsoft/TypeScript/issues/5207#top
https://github.com/mhegazy
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 2.4https://github.com/microsoft/TypeScript/milestone/43
https://github.com/falsandtru
falsandtru (falsandtru)https://github.com/falsandtru
on Oct 11, 2015https://github.com/microsoft/TypeScript/issues/5207#issue-110840532
http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-statements-and-declarationshttp://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-statements-and-declarations
http://www.ecma-international.org/ecma-262/6.0/#sec-variable-statementhttp://www.ecma-international.org/ecma-262/6.0/#sec-variable-statement
http://www.2ality.com/2015/02/es6-classes-final.htmlhttp://www.2ality.com/2015/02/es6-classes-final.html
#2854https://github.com/microsoft/TypeScript/issues/2854
Nexthttps://github.com/microsoft/TypeScript/issues/5207?timeline_page=1
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Oct 11, 2015https://github.com/microsoft/TypeScript/issues/5207#issuecomment-147232434
Vladimir Matveev (@vladima)https://github.com/vladima
https://github.com/falsandtru
falsandtru (falsandtru)https://github.com/falsandtru
on Oct 11, 2015https://github.com/microsoft/TypeScript/issues/5207#issuecomment-147248408
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Oct 12, 2015https://github.com/microsoft/TypeScript/issues/5207#issuecomment-147269730
#4788https://github.com/microsoft/TypeScript/pull/4788
https://github.com/falsandtru
falsandtru (falsandtru)https://github.com/falsandtru
on Oct 12, 2015https://github.com/microsoft/TypeScript/issues/5207#issuecomment-147299947
Basarat Ali Syed (@basarat)https://github.com/basarat
#4788https://github.com/microsoft/TypeScript/pull/4788
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Oct 12, 2015https://github.com/microsoft/TypeScript/issues/5207#issuecomment-147469302
#2854https://github.com/microsoft/TypeScript/issues/2854
#2854https://github.com/microsoft/TypeScript/issues/2854
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Oct 12, 2015https://github.com/microsoft/TypeScript/issues/5207#event-433182848
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Oct 12, 2015https://github.com/microsoft/TypeScript/issues/5207#event-433183228
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5207#event-439463638
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5207#event-439575766
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5207#issuecomment-149331771
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5207#event-439622950
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 1.8https://github.com/microsoft/TypeScript/milestone/15
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5207#event-439622992
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Aug 10, 2016https://github.com/microsoft/TypeScript/issues/5207#issuecomment-238768717
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.1https://github.com/microsoft/TypeScript/milestone/20
on Sep 21, 2016https://github.com/microsoft/TypeScript/issues/5207#event-796550277
Frederik Krautwald (Frikki)https://github.com/Frikki
on Oct 20, 2016https://github.com/microsoft/TypeScript/issues/5207#event-829983422
fix(domain/models): remove cyclic dependencyhttps://github.com/SparksNetwork/sparks-frontend/commit/b6cc6acd4c4957b1c4019eb02d89e3afcef5dc9a
b6cc6achttps://github.com/SparksNetwork/sparks-frontend/commit/b6cc6acd4c4957b1c4019eb02d89e3afcef5dc9a
https://github.com/pmoleri
Pablo Moleri (pmoleri)https://github.com/pmoleri
on Feb 22, 2017https://github.com/microsoft/TypeScript/issues/5207#issuecomment-281812626
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Feb 22, 2017https://github.com/microsoft/TypeScript/issues/5207#issuecomment-281814014
https://github.com/Microsoft/TypeScript/wiki/FAQ#what-do-the-labels-on-these-issues-meanhttps://github.com/Microsoft/TypeScript/wiki/FAQ#what-do-the-labels-on-these-issues-mean
https://github.com/pmoleri
Pablo Moleri (pmoleri)https://github.com/pmoleri
on Feb 22, 2017https://github.com/microsoft/TypeScript/issues/5207#issuecomment-281814859
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Vladimir Matveev (vladima)https://github.com/vladima
on Mar 24, 2017https://github.com/microsoft/TypeScript/issues/5207#event-1014609911
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jun 12, 2017https://github.com/microsoft/TypeScript/issues/5207#issuecomment-307962991
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 12, 2017https://github.com/microsoft/TypeScript/issues/5207#event-1120440182
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Jun 12, 2017https://github.com/microsoft/TypeScript/issues/5207#event-1120440225
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.4https://github.com/microsoft/TypeScript/milestone/43
on Jun 12, 2017https://github.com/microsoft/TypeScript/issues/5207#event-1120440309
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/5207#event-1689619380
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/5207
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/5207
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 2.4https://github.com/microsoft/TypeScript/milestone/43
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.