2014-07-13 01:04:16 +02:00
|
|
|
//// [thisReferencedInFunctionInsideArrowFunction1.ts]
|
|
|
|
var foo = (dummy) => { };
|
|
|
|
function test()
|
|
|
|
{
|
|
|
|
foo(() =>
|
|
|
|
function () { return this; }
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [thisReferencedInFunctionInsideArrowFunction1.js]
|
2015-02-07 03:45:09 +01:00
|
|
|
var foo = function (dummy) { };
|
2014-07-13 01:04:16 +02:00
|
|
|
function test() {
|
|
|
|
foo(function () { return function () {
|
|
|
|
return this;
|
|
|
|
}; });
|
|
|
|
}
|