mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Component commits:
6a6f4a666e Fix crash in assigning function with this ref to alias
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
4b09fd707b
commit
ea71ecfe22
@@ -2709,7 +2709,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
if (constructorSymbol) {
|
||||
if (constructorSymbol && constructorSymbol.valueDeclaration) {
|
||||
// Declare a 'member' if the container is an ES5 class or ES6 constructor
|
||||
constructorSymbol.members = constructorSymbol.members || createSymbolTable();
|
||||
// It's acceptable for multiple 'this' assignments of the same identifier to occur
|
||||
|
||||
Reference in New Issue
Block a user