Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add links to github above big var blocks #52925

Merged
merged 2 commits into from
Feb 23, 2023
Merged

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Feb 23, 2023

Using a URL here since those are nice and clickable.

See: #52924

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 23, 2023
Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was expecting a comment including "TDZ" or "performance" but this is actually fine!

@jakebailey
Copy link
Member Author

Happy to change it to whatever.

@@ -501,6 +501,7 @@ export function bindSourceFile(file: SourceFile, options: CompilerOptions) {
}

function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
// Why var? See: https://github.com/microsoft/TypeScript/issues/52924
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Why var? See: https://github.com/microsoft/TypeScript/issues/52924
// Why var? It avoids TDZ checks in the runtime which can be costly.
// See: https://github.com/microsoft/TypeScript/issues/52924

@jakebailey jakebailey merged commit 718e63b into microsoft:main Feb 23, 2023
@jakebailey jakebailey deleted the var-doc branch February 23, 2023 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants