Do not attempt evaluating class expressions

Broadly the same as function expressions - these actually are statements but
we're limited by the inheritance tree.

Fixes #1044
This commit is contained in:
Richard van Velzen
2016-04-19 20:01:26 +02:00
parent 68cc14f846
commit 8571a08a93
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
issue_1044: {
options = { evaluate: true, conditionals: true };
input: {
const mixed = Base ? class extends Base {} : class {}
}
expect: {
const mixed = Base ? class extends Base {} : class {}
}
}