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

@@ -1,11 +1,11 @@
"use strict";
var Test = (function () {
var _Test = function Test() {
babelHelpers.classCallCheck(this, _Test);
function Test() {
babelHelpers.classCallCheck(this, Test);
babelHelpers.get(Object.getPrototypeOf(_Test.prototype), "hasOwnProperty", this).call(this, "test");
};
babelHelpers.get(Object.getPrototypeOf(Test.prototype), "hasOwnProperty", this).call(this, "test");
}
return _Test;
return Test;
})();