[compiler] Remove unnecessary fixture

This is covered by iife-inline-ternary
This commit is contained in:
Joe Savona
2025-06-18 09:53:45 -07:00
parent e1dc03492e
commit 631b1cfc74
2 changed files with 0 additions and 41 deletions
@@ -1,33 +0,0 @@
## Input
```javascript
function Component(props) {
const x = props.foo
? 1
: (() => {
throw new Error('Did not receive 1');
})();
return items;
}
```
## Error
```
2 | const x = props.foo
3 | ? 1
> 4 | : (() => {
| ^^^^^^^^
> 5 | throw new Error('Did not receive 1');
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 6 | })();
| ^^^^^^^^^^^ Todo: Support labeled statements combined with value blocks (conditional, logical, optional chaining, etc) (4:6)
7 | return items;
8 | }
9 |
```
@@ -1,8 +0,0 @@
function Component(props) {
const x = props.foo
? 1
: (() => {
throw new Error('Did not receive 1');
})();
return items;
}