deduplicate parenthesis around object and function literals (#2953)

This commit is contained in:
Alex Lam S.L
2018-02-25 02:14:33 +08:00
committed by GitHub
parent 455790202a
commit 52de64cf16
2 changed files with 15 additions and 2 deletions

View File

@@ -2012,3 +2012,13 @@ issue_2898: {
}
expect_stdout: "2"
}
deduplicate_parenthesis: {
input: {
({}).a = b;
(({}).a = b)();
(function() {}).a = b;
((function() {}).a = b)();
}
expect_exact: "({}).a=b;({}.a=b)();(function(){}).a=b;(function(){}.a=b)();"
}