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
|
=== /a.js ===
class A {
>A : A
/**
* @param {object} [foo={}]
*/
m(foo = {}) {
>m : (foo?: object) => void
>foo : any
>{} : {}
const key = "bar";
>key : "bar"
>"bar" : "bar"
/**
* @type object
*/
this.foo = foo;
>this.foo = foo : any
>this.foo : any
>this : this
>foo : any
>foo : any
/**
* @type object
*/
const arguments = this.arguments;
>arguments : any
>this.arguments : { bar: {}; }
>this : this
>arguments : { bar: {}; }
/**
* @type object
*/
this.bar = arguments.bar;
>this.bar = arguments.bar : any
>this.bar : any
>this : this
>bar : any
>arguments.bar : any
>arguments : any
>bar : any
/**
* @type object
*/
this.baz = arguments[key];
>this.baz = arguments[key] : any
>this.baz : any
>this : this
>baz : any
>arguments[key] : any
>arguments : any
>key : "bar"
/**
* @type object
*/
this.options = arguments;
>this.options = arguments : any
>this.options : any
>this : this
>options : any
>arguments : any
}
get arguments() {
>arguments : { bar: {}; }
return { bar: {} };
>{ bar: {} } : { bar: {}; }
>bar : {}
>{} : {}
}
}
|