18 lines
391 B
Text
18 lines
391 B
Text
=== tests/cases/compiler/globalThisCapture.ts ===
|
|
// Add a lambda to ensure global 'this' capture is triggered
|
|
(()=>this.window);
|
|
>(()=>this.window) : () => any
|
|
>()=>this.window : () => any
|
|
>this.window : any
|
|
>this : any
|
|
>window : any
|
|
|
|
var parts = [];
|
|
>parts : any[]
|
|
>[] : undefined[]
|
|
|
|
// Ensure that the generated code is correct
|
|
parts[0];
|
|
>parts[0] : any
|
|
>parts : any[]
|
|
|