-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Shorthand properties with =
cause assertion failures in consumeTokenAndAdvanceScanner
#52137
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
Comments
=
causes assertion failures in consumeTokenAndAdvanceScanner
=
causes assertion failures in consumeTokenAndAdvanceScanner
=
cause assertion failures in consumeTokenAndAdvanceScanner
Similar: declare let x: any, y: any, asd: any;
let obj = [|{
...{ x = { lol = 10 }},
...{ y = 20}
}|]; Extract constant on that range. Call Stack
|
I'm going to guess that these have to do with So when TypeScript/src/services/textChanges.ts Line 1339 in 90fb764
it doesn't update the old Later on,
and it's not. @rbuckton previously left a comment in the parser about this - so maybe we can get rid of TypeScript/src/compiler/parser.ts Lines 6535 to 6536 in 90fb764
|
=
cause assertion failures in consumeTokenAndAdvanceScanner
=
cause assertion failures in consumeTokenAndAdvanceScanner
This is what happens when you consume too many tokens 🐽 |
Uh oh!
There was an error while loading. Please reload this page.
Repro-ish of #52029
File:
foo.tsx
Request the "Wrap in JSX Fragment" quick fix.
Call Stack
Notes
declare
modifier on any of thelet
sDoesn't repro if there's a trailinggotta come back to this - might be a Heisenbug;
The text was updated successfully, but these errors were encountered: