deduplicate parenthesis around object and function literals (#2953)
This commit is contained in:
@@ -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)();"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user