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