1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
=== tests/cases/conformance/salsa/npm-install.js ===
function Installer () {
>Installer : typeof Installer
this.args = 0
>this.args = 0 : 0
>this.args : any
>this : any
>args : any
>0 : 0
}
Installer.prototype.loadArgMetadata = function (next) {
>Installer.prototype.loadArgMetadata = function (next) { // ArrowFunction isn't treated as a this-container (args) => { this.args = 'hi' this.newProperty = 1 }} : (next: any) => void
>Installer.prototype.loadArgMetadata : any
>Installer.prototype : any
>Installer : typeof Installer
>prototype : any
>loadArgMetadata : any
>function (next) { // ArrowFunction isn't treated as a this-container (args) => { this.args = 'hi' this.newProperty = 1 }} : (next: any) => void
>next : any
// ArrowFunction isn't treated as a this-container
(args) => {
>(args) => { this.args = 'hi' this.newProperty = 1 } : (args: any) => void
>args : any
this.args = 'hi'
>this.args = 'hi' : "hi"
>this.args : number
>this : Installer
>args : number
>'hi' : "hi"
this.newProperty = 1
>this.newProperty = 1 : 1
>this.newProperty : number | undefined
>this : Installer
>newProperty : number | undefined
>1 : 1
}
}
var i = new Installer()
>i : Installer
>new Installer() : Installer
>Installer : typeof Installer
i.newProperty = i.args // ok, number ==> number | undefined
>i.newProperty = i.args : number
>i.newProperty : number | undefined
>i : Installer
>newProperty : number | undefined
>i.args : number
>i : Installer
>args : number
|