Skip to content

Commit

Permalink
[compiler] Repro for outlining bug in funcexprs
Browse files Browse the repository at this point in the history
I discovered this compiler crash while trying to do an internal sync of
the compiler. Any kind of outlining appears to crash the babel plugin
when the component is a function expression.

ghstack-source-id: 4f717674af91d4d4b730e64cbd7a144b9faab13e
Pull Request resolved: #30443
  • Loading branch information
poteto committed Jul 24, 2024
1 parent c0b76a6 commit 91e4f07
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

## Input

```javascript
const Component2 = props => {
return (
<ul>
{props.items.map(item => (
<li key={item.id}>{item.name}</li>
))}
</ul>
);
};

```


## Error

```
Invalid value used in weak set
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Component2 = props => {
return (
<ul>
{props.items.map(item => (
<li key={item.id}>{item.name}</li>
))}
</ul>
);
};

0 comments on commit 91e4f07

Please sign in to comment.