Commit 35e1601
committed
syntax/jsx_v4: fix forwardRef arity regression; mark internal impl uncurried when forwardRef is used (#7738)
- Fix JSX v4 React.forwardRef arity regression seen in v12.
- When forwardRef is used, make the internal implementation uncurried with arity 2.
- Add regression test tests/tests/src/forwardRef_regress.res (JSX v4 enabled).1 parent ed425d8 commit 35e1601
File tree
2 files changed
+13
-0
lines changed- compiler/syntax/src
- tests/tests/src
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| 736 | + | |
736 | 737 | | |
737 | 738 | | |
738 | 739 | | |
| |||
748 | 749 | | |
749 | 750 | | |
750 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
751 | 756 | | |
752 | 757 | | |
753 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments