class declarations also have a lexical self binding

This commit is contained in:
Sebastian McKenzie
2015-03-07 01:25:18 +11:00
parent 7d446807a9
commit 51e336b037
49 changed files with 301 additions and 285 deletions

View File

@@ -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;
})();