Parenthesize function expressions in expression position (#941)
* refactor needsParens for function expressions * snapshots * comment
This commit is contained in:
1 parent
50602aecbb
commit
7443f4cbd6
12 files changed
+102
-177
No files matched your search
@@ -6,3 +6,6 @@ export default (function() {})();
|
||||
new (function() {});
|
||||
(function() {});
|
||||
a = function f() {} || b;
|
||||
(function() {} && a);
|
||||
a + function() {};
|
||||
new function() {};
|
||||
Reference in new issue
Block a user