Files
tsgo/testdata/baselines/reference/submodule/compiler/fatarrowfunctionsInFunctions.js

30 lines
693 B
TypeScript

//// [tests/cases/compiler/fatarrowfunctionsInFunctions.ts] ////
//// [fatarrowfunctionsInFunctions.ts]
declare function setTimeout(expression: any, msec?: number, language?: any): number;
var messenger = {
message: "Hello World",
start: function() {
var _self = this;
setTimeout(function() {
_self.message.toString();
}, 3000);
}
};
messenger.start();
//// [fatarrowfunctionsInFunctions.js]
"use strict";
var messenger = {
message: "Hello World",
start: function () {
var _self = this;
setTimeout(function () {
_self.message.toString();
}, 3000);
}
};
messenger.start();