Cherry-pick PR #34650 into release-3.7 (#34658)

Component commits:
6a6f4a666e Fix crash in assigning function with this ref to alias
This commit is contained in:
TypeScript Bot
2019-10-22 15:22:31 -07:00
committed by Nathan Shively-Sanders
parent 4b09fd707b
commit ea71ecfe22
5 changed files with 46 additions and 3 deletions
@@ -11,5 +11,7 @@ module.exports = Alias;
// @filename: main.js
import A from './mod1'
A.prototype.foo = 0
A.prototype.func = function() { this._func = 0; }
new A().bar
new A().foo
new A().func()