Put expression after extend between parentheses if necessary (#1780)

This commit is contained in:
Anthony Van de Gejuchte
2017-04-04 06:38:13 +02:00
committed by Alex Lam S.L
parent 2377171200
commit c20bb99a62
2 changed files with 19 additions and 11 deletions

View File

@@ -152,6 +152,13 @@ class_methods_and_getters_with_keep_quoted_props_enabled: {
expect_exact: 'class clss{a(){}"b"(){}get c(){return"c"}get"d"(){return"d"}set e(a){doSomething(a)}set\'f\'(a){doSomething(b)}static g(){}static"h"(){}}'
}
classes_with_expression_as_expand: {
input: {
class D extends (calls++, C) {}
}
expect_exact: "class D extends(calls++,C){}"
}
new_target: {
input: {
new.target;