fix exported classes with static class properties - fixes #2868

This commit is contained in:
Sebastian McKenzie
2015-11-10 15:56:22 -08:00
parent 29f756fd6f
commit 54c13eef5c
24 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
class Foo {
static bar = "foo";
}

View File

@@ -0,0 +1,9 @@
class Foo {
static num = 0;
static str = "foo";
}
assert.equal(Foo.num, 0);
assert.equal(Foo.num = 1, 1);
assert.equal(Foo.str, "foo");
assert.equal(Foo.str = "bar", "bar");

View File

@@ -0,0 +1,5 @@
var Foo = function Foo() {
babelHelpers.classCallCheck(this, Foo);
};
Foo.bar = "foo";