[compiler] Remove unnecessary fixture (#33572)
This is covered by iife-inline-ternary --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33572). * #33571 * #33558 * #33547 * #33543 * #33533 * #33532 * #33530 * #33526 * #33522 * #33518 * #33514 * #33513 * #33512 * #33504 * #33500 * #33497 * #33496 * #33495 * #33494 * __->__ #33572
Joseph Savona committed
Jun 18, 2025 at 12:57 UTC
ae962653d63ca88b6727d6f585026f2bbfa313a1
2 files changed
-41
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.todo-iife-inline-ternary.expect.md
deleted
-33
@@ -1,33 +0,0 @@
1
-
2
-## Input
3
-
4
-```javascript
5
-function Component(props) {
6
- const x = props.foo
7
- ? 1
8
- : (() => {
9
- throw new Error('Did not receive 1');
10
- })();
11
- return items;
12
-}
13
-
14
-```
15
-
16
-
17
-## Error
18
-
19
-```
20
- 2 | const x = props.foo
21
- 3 | ? 1
22
-> 4 | : (() => {
23
- | ^^^^^^^^
24
-> 5 | throw new Error('Did not receive 1');
25
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
-> 6 | })();
27
- | ^^^^^^^^^^^ Todo: Support labeled statements combined with value blocks (conditional, logical, optional chaining, etc) (4:6)
28
- 7 | return items;
29
- 8 | }
30
- 9 |
31
-```
32
-
33
-
\ No newline at end of file
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.todo-iife-inline-ternary.js
deleted
-8
@@ -1,8 +0,0 @@
1
-function Component(props) {
2
- const x = props.foo
3
- ? 1
4
- : (() => {
5
- throw new Error('Did not receive 1');
6
- })();
7
- return items;
8
-}