17 lines
411 B
JavaScript
17 lines
411 B
JavaScript
//// [globalThisCapture.ts]
|
|
// Add a lambda to ensure global 'this' capture is triggered
|
|
(()=>this.window);
|
|
|
|
var parts = [];
|
|
|
|
// Ensure that the generated code is correct
|
|
parts[0];
|
|
|
|
|
|
//// [globalThisCapture.js]
|
|
var _this = this;
|
|
// Add a lambda to ensure global 'this' capture is triggered
|
|
(function () { return _this.window; });
|
|
var parts = [];
|
|
// Ensure that the generated code is correct
|
|
parts[0];
|