always remove ClassProperty nodes in flow transformer - fixes #1686

This commit is contained in:
Sebastian McKenzie 2015-06-05 09:42:46 +01:00
parent 02a6feed73
commit 25581981b5
3 changed files with 10 additions and 9 deletions

View File

@ -13,6 +13,11 @@ _Note: Gaps between patch versions are faulty/broken releases._
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
## 5.5.1
* **Bug Fix**
* Remove `ClassProperty` nodes always in the `Flow` transformer. This is fine now since.
## 5.5.0
* **Bug Fix**

View File

@ -7,7 +7,9 @@ export function Flow(node) {
}
export function ClassProperty(node) {
node.typeAnnotation = null;
// todo: uncomment when/if class properties are supported by default.
// node.typeAnnotation = null;
this.dangerouslyRemove();
}
export function Class(node) {

View File

@ -64,14 +64,8 @@ class Foo8 {
"bar"() {}
}
function foo(requiredParam, optParam) {}
class Foo9 {
prop1;
prop2;
}
class Foo10 {
static prop1;
prop2;
}
class Foo9 {}
class Foo10 {}
var x = 4;
class Array {
concat(items) {}