15 lines
303 B
JavaScript
15 lines
303 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;
|
|
(function () { return _this.window; });
|
|
var parts = [];
|
|
parts[0];
|