Microsoft/TypeScript
Ver no GitHubJS | Optional chaining left hand assignment not detected as syntax error.
Open
#57.640 aberto em 4 de mar. de 2024
BugDomain: ParserHelp Wanted
Métricas do repositório
- Stars
- (48.455 stars)
- Métricas de merge de PR
- (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)
Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.86.2
- OS Version: Windows 11
Steps to Reproduce:
- Add this code to a .js file:
let tree = {type: 'none'};
tree?.type = 'apple';
- This should be detected as a syntax error. Specifically "Uncaught SyntaxError: Invalid left-hand side in assignment". It is not.