FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Reuse Printers with common options by jakebailey · Pull Request #52382 · microsoft/TypeScript · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .ts  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Revert "Go a little faster by comparing against undefined"
This reverts commit 82251a3.
  • Loading branch information
jakebailey committed Jan 25, 2023
commit ce0f7ce0221b05879fa7c833f53216cd23176b5d
2 changes: 1 addition & 1 deletion src/compiler/emitter.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ export function createOrReusePrinter(o: ReusablePrinterOptions = {}) {
+ keyNum(o.target)
+ keyNum(o.newLine);
let printer = printerCache.get(key);
if (printer === undefined) {
if (!printer) {
printerCache.set(key, printer = createPrinter(o));
}
return printer;
Expand Down

Back | FazBrowse Home | New Git URL