Skip to content

Commit d47aff0

Browse files
committed
[playground] Fix syntax error from crashing the Compiler playground (facebook#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)
1 parent e5fbf98 commit d47aff0

34 files changed

+86
-86
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4b3e662e4ce54eb54a8701c48a967cc84a389501
1+
06fcc8f380c6a905c7bc18d94453f623cf8cbc81
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4b3e662e4ce54eb54a8701c48a967cc84a389501
1+
06fcc8f380c6a905c7bc18d94453f623cf8cbc81

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,7 @@ __DEV__ &&
14601460
exports.useTransition = function () {
14611461
return resolveDispatcher().useTransition();
14621462
};
1463-
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
1463+
exports.version = "19.3.0-www-classic-06fcc8f3-20251009";
14641464
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14651465
"function" ===
14661466
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,7 @@ __DEV__ &&
14601460
exports.useTransition = function () {
14611461
return resolveDispatcher().useTransition();
14621462
};
1463-
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
1463+
exports.version = "19.3.0-www-modern-06fcc8f3-20251009";
14641464
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14651465
"function" ===
14661466
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
609+
exports.version = "19.3.0-www-classic-06fcc8f3-20251009";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
609+
exports.version = "19.3.0-www-modern-06fcc8f3-20251009";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
613+
exports.version = "19.3.0-www-classic-06fcc8f3-20251009";
614614
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
615615
"function" ===
616616
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
613+
exports.version = "19.3.0-www-modern-06fcc8f3-20251009";
614614
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
615615
"function" ===
616616
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20348,10 +20348,10 @@ __DEV__ &&
2034820348
(function () {
2034920349
var internals = {
2035020350
bundleType: 1,
20351-
version: "19.3.0-www-classic-4b3e662e-20251008",
20351+
version: "19.3.0-www-classic-06fcc8f3-20251009",
2035220352
rendererPackageName: "react-art",
2035320353
currentDispatcherRef: ReactSharedInternals,
20354-
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
20354+
reconcilerVersion: "19.3.0-www-classic-06fcc8f3-20251009"
2035520355
};
2035620356
internals.overrideHookState = overrideHookState;
2035720357
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20386,7 +20386,7 @@ __DEV__ &&
2038620386
exports.Shape = Shape;
2038720387
exports.Surface = Surface;
2038820388
exports.Text = Text;
20389-
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
20389+
exports.version = "19.3.0-www-classic-06fcc8f3-20251009";
2039020390
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2039120391
"function" ===
2039220392
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20119,10 +20119,10 @@ __DEV__ &&
2011920119
(function () {
2012020120
var internals = {
2012120121
bundleType: 1,
20122-
version: "19.3.0-www-modern-4b3e662e-20251008",
20122+
version: "19.3.0-www-modern-06fcc8f3-20251009",
2012320123
rendererPackageName: "react-art",
2012420124
currentDispatcherRef: ReactSharedInternals,
20125-
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
20125+
reconcilerVersion: "19.3.0-www-modern-06fcc8f3-20251009"
2012620126
};
2012720127
internals.overrideHookState = overrideHookState;
2012820128
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20157,7 +20157,7 @@ __DEV__ &&
2015720157
exports.Shape = Shape;
2015820158
exports.Surface = Surface;
2015920159
exports.Text = Text;
20160-
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
20160+
exports.version = "19.3.0-www-modern-06fcc8f3-20251009";
2016120161
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2016220162
"function" ===
2016320163
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)