TypeScript/tests/baselines/reference/globalThisCapture.js
2014-07-12 17:30:19 -07:00

16 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];