Skip to content

Conversation

@ianduvall
Copy link
Contributor

@ianduvall ianduvall commented Sep 27, 2025

Summary

Fixes a syntax error causing the Compiler playground to crash. Resolves #34622. Resolves #34623

How did you test this change?

Tested locally and added a test.

Screenshot 2025-09-27 at 8 13 07 AM

@meta-cla meta-cla bot added the CLA Signed label Sep 27, 2025
@ianduvall ianduvall marked this pull request as ready for review September 27, 2025 15:15
@ianduvall ianduvall changed the title Fix syntax error from crashing the Compiler playground [playground] Fix syntax error from crashing the Compiler playground Sep 27, 2025
Copy link
Member

@josephsavona josephsavona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! I'll let @EugeneChoi4 review, just a quick comment. the interface declaration is in a kind of random spot, we should maybe centralize that if it's necessary

@EugeneChoi4
Copy link
Contributor

Thanks for the help! I'll be able to approve when you address the interface question.

@ianduvall ianduvall force-pushed the playground-crash-syntax-error branch from 84a486f to b45e796 Compare October 9, 2025 18:49
@ianduvall ianduvall requested a review from EugeneChoi4 October 9, 2025 18:49
@EugeneChoi4 EugeneChoi4 merged commit 06fcc8f into facebook:main Oct 9, 2025
21 checks passed
github-actions bot pushed a commit to code/lib-react that referenced this pull request Oct 12, 2025
…acebook#34623)

<!--
  Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please
provide enough information so that others can review your pull request.
The three fields below are mandatory.

Before submitting a pull request, please make sure the following is
done:

1. Fork [the repository](https://github.com/facebook/react) and create
your branch from `main`.
  2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
TestName` is helpful in development.
5. Run `yarn test --prod` to test in the production environment. It
supports the same options as `yarn test`.
6. If you need a debugger, run `yarn test --debug --watch TestName`,
open `chrome://inspect`, and press "Inspect".
7. Format your code with
[prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

Learn more about contributing:
https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

<!--
Explain the **motivation** for making this change. What existing problem
does the pull request solve?
-->

Fixes a syntax error causing the Compiler playground to crash. Resolves
facebook#34622.

## How did you test this change?

<!--
Demonstrate the code is solid. Example: The exact commands you ran and
their output, screenshots / videos if the pull request changes the user
interface.
How exactly did you verify that your PR solves the issue you wanted to
solve?
  If you leave this empty, your PR will very likely be closed.
-->

Tested locally and added a test.

<img width="1470" height="836" alt="Screenshot 2025-09-27 at 8 13 07 AM"
src="https://github.com/user-attachments/assets/29473682-94c3-49dc-9ee9-c2004062aaea"
/>

DiffTrain build for [06fcc8f](facebook@06fcc8f)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Oct 12, 2025
…acebook#34623)

<!--
  Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please
provide enough information so that others can review your pull request.
The three fields below are mandatory.

Before submitting a pull request, please make sure the following is
done:

1. Fork [the repository](https://github.com/facebook/react) and create
your branch from `main`.
  2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
TestName` is helpful in development.
5. Run `yarn test --prod` to test in the production environment. It
supports the same options as `yarn test`.
6. If you need a debugger, run `yarn test --debug --watch TestName`,
open `chrome://inspect`, and press "Inspect".
7. Format your code with
[prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

Learn more about contributing:
https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

<!--
Explain the **motivation** for making this change. What existing problem
does the pull request solve?
-->

Fixes a syntax error causing the Compiler playground to crash. Resolves
facebook#34622.

## How did you test this change?

<!--
Demonstrate the code is solid. Example: The exact commands you ran and
their output, screenshots / videos if the pull request changes the user
interface.
How exactly did you verify that your PR solves the issue you wanted to
solve?
  If you leave this empty, your PR will very likely be closed.
-->

Tested locally and added a test.

<img width="1470" height="836" alt="Screenshot 2025-09-27 at 8 13 07 AM"
src="https://github.com/user-attachments/assets/29473682-94c3-49dc-9ee9-c2004062aaea"
/>

DiffTrain build for [06fcc8f](facebook@06fcc8f)
@ianduvall ianduvall deleted the playground-crash-syntax-error branch October 13, 2025 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[playground]: Syntax error crashes playground

3 participants