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

@@ -33,11 +33,11 @@ System.register([], function (_export) {
_export("default", _default);
Foo = (function () {
var _Foo = function Foo() {
_classCallCheck(this, _Foo);
};
function Foo() {
_classCallCheck(this, Foo);
}
return _Foo;
return Foo;
})();
_export("default", Foo);

View File

@@ -19,11 +19,11 @@ System.register([], function (_export) {
foo5 = _export("foo5", undefined);
foo6 = _export("foo6", 3);
foo8 = _export("foo8", (function () {
var _foo8 = function foo8() {
_classCallCheck(this, _foo8);
};
function foo8() {
_classCallCheck(this, foo8);
}
return _foo8;
return foo8;
})());
_export("foo3", foo3 = 5);