Skip to content

Commit 05bd155

Browse files
unstubbablegnoff
andauthored
Backport facebook/react#35351 for 15.2.7 (#87089)
facebook/react#35351 Co-authored-by: Josh Story <[email protected]>
1 parent dabb4b4 commit 05bd155

File tree

36 files changed

+100
-72
lines changed

36 files changed

+100
-72
lines changed

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2914,10 +2914,10 @@
29142914
return hook.checkDCE ? !0 : !1;
29152915
})({
29162916
bundleType: 1,
2917-
version: "19.1.0-experimental-8ad20fc0-20251211",
2917+
version: "19.1.0-experimental-7a835f3c-20251211",
29182918
rendererPackageName: "react-server-dom-turbopack",
29192919
currentDispatcherRef: ReactSharedInternals,
2920-
reconcilerVersion: "19.1.0-experimental-8ad20fc0-20251211",
2920+
reconcilerVersion: "19.1.0-experimental-7a835f3c-20251211",
29212921
getCurrentComponentInfo: function () {
29222922
return currentOwnerInDEV;
29232923
}

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.development.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4178,11 +4178,12 @@
41784178
case "fulfilled":
41794179
if ("function" === typeof resolve) {
41804180
for (
4181-
var inspectedValue = this.value;
4181+
var inspectedValue = this.value, cycleProtection = 0;
41824182
inspectedValue instanceof ReactPromise;
41834183

41844184
) {
4185-
if (inspectedValue === this) {
4185+
cycleProtection++;
4186+
if (inspectedValue === this || 1e3 < cycleProtection) {
41864187
"function" === typeof reject &&
41874188
reject(Error("Cannot have cyclic thenables."));
41884189
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,11 +2126,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
21262126
case "fulfilled":
21272127
if ("function" === typeof resolve) {
21282128
for (
2129-
var inspectedValue = this.value;
2129+
var inspectedValue = this.value, cycleProtection = 0;
21302130
inspectedValue instanceof ReactPromise;
21312131

21322132
) {
2133-
if (inspectedValue === this) {
2133+
cycleProtection++;
2134+
if (inspectedValue === this || 1e3 < cycleProtection) {
21342135
"function" === typeof reject &&
21352136
reject(Error("Cannot have cyclic thenables."));
21362137
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.development.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4282,11 +4282,12 @@
42824282
case "fulfilled":
42834283
if ("function" === typeof resolve) {
42844284
for (
4285-
var inspectedValue = this.value;
4285+
var inspectedValue = this.value, cycleProtection = 0;
42864286
inspectedValue instanceof ReactPromise;
42874287

42884288
) {
4289-
if (inspectedValue === this) {
4289+
cycleProtection++;
4290+
if (inspectedValue === this || 1e3 < cycleProtection) {
42904291
"function" === typeof reject &&
42914292
reject(Error("Cannot have cyclic thenables."));
42924293
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,11 +2139,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
21392139
case "fulfilled":
21402140
if ("function" === typeof resolve) {
21412141
for (
2142-
var inspectedValue = this.value;
2142+
var inspectedValue = this.value, cycleProtection = 0;
21432143
inspectedValue instanceof ReactPromise;
21442144

21452145
) {
2146-
if (inspectedValue === this) {
2146+
cycleProtection++;
2147+
if (inspectedValue === this || 1e3 < cycleProtection) {
21472148
"function" === typeof reject &&
21482149
reject(Error("Cannot have cyclic thenables."));
21492150
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4274,11 +4274,12 @@
42744274
case "fulfilled":
42754275
if ("function" === typeof resolve) {
42764276
for (
4277-
var inspectedValue = this.value;
4277+
var inspectedValue = this.value, cycleProtection = 0;
42784278
inspectedValue instanceof ReactPromise;
42794279

42804280
) {
4281-
if (inspectedValue === this) {
4281+
cycleProtection++;
4282+
if (inspectedValue === this || 1e3 < cycleProtection) {
42824283
"function" === typeof reject &&
42834284
reject(Error("Cannot have cyclic thenables."));
42844285
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,11 +2160,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
21602160
case "fulfilled":
21612161
if ("function" === typeof resolve) {
21622162
for (
2163-
var inspectedValue = this.value;
2163+
var inspectedValue = this.value, cycleProtection = 0;
21642164
inspectedValue instanceof ReactPromise;
21652165

21662166
) {
2167-
if (inspectedValue === this) {
2167+
cycleProtection++;
2168+
if (inspectedValue === this || 1e3 < cycleProtection) {
21682169
"function" === typeof reject &&
21692170
reject(Error("Cannot have cyclic thenables."));
21702171
return;

packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"neo-async": "^2.6.1"
4949
},
5050
"peerDependencies": {
51-
"react": "0.0.0-experimental-8ad20fc0-20251211",
52-
"react-dom": "0.0.0-experimental-8ad20fc0-20251211"
51+
"react": "0.0.0-experimental-7a835f3c-20251211",
52+
"react-dom": "0.0.0-experimental-7a835f3c-20251211"
5353
}
5454
}

packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,10 +2665,10 @@
26652665
return hook.checkDCE ? !0 : !1;
26662666
})({
26672667
bundleType: 1,
2668-
version: "19.1.0-canary-8ad20fc0-20251211",
2668+
version: "19.1.0-canary-7a835f3c-20251211",
26692669
rendererPackageName: "react-server-dom-turbopack",
26702670
currentDispatcherRef: ReactSharedInternals,
2671-
reconcilerVersion: "19.1.0-canary-8ad20fc0-20251211",
2671+
reconcilerVersion: "19.1.0-canary-7a835f3c-20251211",
26722672
getCurrentComponentInfo: function () {
26732673
return currentOwnerInDEV;
26742674
}

packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3998,11 +3998,12 @@
39983998
case "fulfilled":
39993999
if ("function" === typeof resolve) {
40004000
for (
4001-
var inspectedValue = this.value;
4001+
var inspectedValue = this.value, cycleProtection = 0;
40024002
inspectedValue instanceof ReactPromise;
40034003

40044004
) {
4005-
if (inspectedValue === this) {
4005+
cycleProtection++;
4006+
if (inspectedValue === this || 1e3 < cycleProtection) {
40064007
"function" === typeof reject &&
40074008
reject(Error("Cannot have cyclic thenables."));
40084009
return;

0 commit comments

Comments
 (0)