You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ReferenceError: _this is not defined, if an arrow function is a static member of a class. #16924
Compiled with: tsc TsBug.ts --lib es2015.promise,es5
Run with: node TsBug.js
Expected behavior:
No output.
Actual behavior:
/..<snip>../TsBug.js:39
Test.member = function (x) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
^
ReferenceError: _this is not defined
at Function.Test.member (/..<snip>../TsBug.js:39:51)
Activity
ikatyang commentedon Jul 4, 2017
Something wrong between v2.3.4 and v2.4.0
jwbay commentedon Jul 4, 2017
Ref: #16120