This one is really weird
```js
if (() => {} ? 1 : 0) {}
```
parses fine but
```js
if (() => {
} ? 1 : 0) {}
```
is a syntax error. Let's always add a parenthesis.
Note that no one is every going to write this in practice, this is really useless :p
8 lines
138 B
JavaScript
8 lines
138 B
JavaScript
(a => {}).length
|
|
typeof (() => {});
|
|
export default (() => {})();
|
|
(() => {})()``;
|
|
(() => {})``;
|
|
new (() => {});
|
|
if ((() => {}) ? 1 : 0) {}
|