Compare commits

...

1 Commits

Author SHA1 Message Date
Joe Savona
631b1cfc74 [compiler] Remove unnecessary fixture
This is covered by iife-inline-ternary
2025-06-18 09:53:45 -07:00
2 changed files with 0 additions and 41 deletions

View File

@@ -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 |
```

View File

@@ -1,8 +0,0 @@
function Component(props) {
const x = props.foo
? 1
: (() => {
throw new Error('Did not receive 1');
})();
return items;
}