class declarations also have a lexical self binding
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };
|
||||
|
||||
var Test = (function () {
|
||||
var _Test = function Test() {
|
||||
_classCallCheck(this, _Test);
|
||||
function Test() {
|
||||
_classCallCheck(this, Test);
|
||||
|
||||
arr.map(x => x * x);
|
||||
};
|
||||
}
|
||||
|
||||
return _Test;
|
||||
return Test;
|
||||
})();
|
||||
Reference in New Issue
Block a user