mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Cherry-pick PR #34649 into release-3.7
Component commits:
b6744812a0 Treat any mix of element/prop access as declaration in JS
Fixes #34642 but, notably, doesn't actually make the assignment into a
working declaration. It just fixes the crash.
This commit is contained in:
committed by
typescript-bot
parent
4b09fd707b
commit
2b0d4600a7
@@ -0,0 +1,3 @@
|
||||
// Should not crash: #34642
|
||||
var arr = [];
|
||||
arr[0].prop[2] = {};
|
||||
Reference in New Issue
Block a user