Fix preserveSourceNewlines sibling node comparison (fixes extra newlines in organize imports) - #42630
Conversation
| //// [parserErrorRecovery_ObjectLiteral2.js] | ||
| var v = { a: a, "return": }; | ||
| var v = { a: a, | ||
| "return": }; |
There was a problem hiding this comment.
These JS baseline changes are reverting back to their original state pre-#36688. That PR was never really meant to change JS emit, but the couple changes that did occur seemed ok so we went with it. Since siblingNodePositionsAreComparable might do a little more work than what’s currently happening in master, I reverted the codepath that non-codefix/refactor emit takes back to the way it originally was.
There was a problem hiding this comment.
siblingNodePositionsAreComparable is now quite cheap, but I think it still makes sense to keep it out of JS emit for now.
5d49a2a to
76220f3
Compare
76220f3 to
de698f9
Compare
|
TypeScript Bot (@typescript-bot) perf test |
|
Looks like the bot trigger for perf tests didn't pick up my command due to a typo in the regexp. TypeScript Bot (@typescript-bot) perf test this |
|
Heya Ron Buckton (@rbuckton), I've started to run the perf test suite on this PR at 77b1902. You can monitor the build here. Update: The results are in! |
|
Ron Buckton (@rbuckton) Here they are:Comparison Report - master..42630
System
Hosts
Scenarios
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is Armando Aguirre (@armanio123)’s #41927 with an extra two commits on top.
Fixes #41417.