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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
=== tests/cases/compiler/b.js ===
exports.E = function() {
>exports.E = function() { this.e = 'exported'} : typeof E
>exports.E : typeof E
>exports : typeof import("tests/cases/compiler/b")
>E : typeof E
>function() { this.e = 'exported'} : typeof E
this.e = 'exported'
>this.e = 'exported' : "exported"
>this.e : any
>this : any
>e : any
>'exported' : "exported"
}
var e = new exports.E();
>e : E
>new exports.E() : E
>exports.E : typeof E
>exports : typeof import("tests/cases/compiler/b")
>E : typeof E
var o = {
>o : { C: typeof C; }
>{ C: function () { this.c = 'nested object' }} : { C: typeof C; }
C: function () {
>C : typeof C
>function () { this.c = 'nested object' } : typeof C
this.c = 'nested object'
>this.c = 'nested object' : "nested object"
>this.c : any
>this : { C: typeof C; }
>c : any
>'nested object' : "nested object"
}
}
var og = new o.C();
>og : C
>new o.C() : C
>o.C : typeof C
>o : { C: typeof C; }
>C : typeof C
var V = function () {
>V : typeof V
>function () { this.v = 'simple'} : typeof V
this.v = 'simple'
>this.v = 'simple' : "simple"
>this.v : any
>this : any
>v : any
>'simple' : "simple"
}
var v = new V();
>v : V
>new V() : V
>V : typeof V
var A;
>A : any
A = function () {
>A = function () { this.a = 'assignment'} : typeof A
>A : any
>function () { this.a = 'assignment'} : typeof A
this.a = 'assignment'
>this.a = 'assignment' : "assignment"
>this.a : any
>this : any
>a : any
>'assignment' : "assignment"
}
var a = new A();
>a : A
>new A() : A
>A : typeof A
const {
B = function() {
>B : typeof B
>function() { this.b = 'binding pattern' } : typeof B
this.b = 'binding pattern'
>this.b = 'binding pattern' : "binding pattern"
>this.b : any
>this : any
>b : any
>'binding pattern' : "binding pattern"
}
} = { B: undefined };
>{ B: undefined } : { B?: undefined; }
>B : undefined
>undefined : undefined
var b = new B();
>b : B
>new B() : B
>B : typeof B
|