Skip to content

Commit 6129673

Browse files
unstubbablegnoff
andauthored
Backport facebook/react#35351 for 15.4.9 (#87087)
facebook/react#35351 Co-authored-by: Josh Story <[email protected]>
1 parent d1449e5 commit 6129673

File tree

32 files changed

+88
-64
lines changed

32 files changed

+88
-64
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
@@ -4316,10 +4316,10 @@
43164316
return hook.checkDCE ? !0 : !1;
43174317
})({
43184318
bundleType: 1,
4319-
version: "19.2.0-experimental-9224f4bf-20251211",
4319+
version: "19.2.0-experimental-abb88194-20251211",
43204320
rendererPackageName: "react-server-dom-turbopack",
43214321
currentDispatcherRef: ReactSharedInternals,
4322-
reconcilerVersion: "19.2.0-experimental-9224f4bf-20251211",
4322+
reconcilerVersion: "19.2.0-experimental-abb88194-20251211",
43234323
getCurrentComponentInfo: function () {
43244324
return currentOwnerInDEV;
43254325
}

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
@@ -5143,11 +5143,12 @@
51435143
case "fulfilled":
51445144
if ("function" === typeof resolve) {
51455145
for (
5146-
var inspectedValue = this.value;
5146+
var inspectedValue = this.value, cycleProtection = 0;
51475147
inspectedValue instanceof ReactPromise;
51485148

51495149
) {
5150-
if (inspectedValue === this) {
5150+
cycleProtection++;
5151+
if (inspectedValue === this || 1e3 < cycleProtection) {
51515152
"function" === typeof reject &&
51525153
reject(Error("Cannot have cyclic thenables."));
51535154
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
@@ -2217,11 +2217,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22172217
case "fulfilled":
22182218
if ("function" === typeof resolve) {
22192219
for (
2220-
var inspectedValue = this.value;
2220+
var inspectedValue = this.value, cycleProtection = 0;
22212221
inspectedValue instanceof ReactPromise;
22222222

22232223
) {
2224-
if (inspectedValue === this) {
2224+
cycleProtection++;
2225+
if (inspectedValue === this || 1e3 < cycleProtection) {
22252226
"function" === typeof reject &&
22262227
reject(Error("Cannot have cyclic thenables."));
22272228
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
@@ -5229,11 +5229,12 @@
52295229
case "fulfilled":
52305230
if ("function" === typeof resolve) {
52315231
for (
5232-
var inspectedValue = this.value;
5232+
var inspectedValue = this.value, cycleProtection = 0;
52335233
inspectedValue instanceof ReactPromise;
52345234

52355235
) {
5236-
if (inspectedValue === this) {
5236+
cycleProtection++;
5237+
if (inspectedValue === this || 1e3 < cycleProtection) {
52375238
"function" === typeof reject &&
52385239
reject(Error("Cannot have cyclic thenables."));
52395240
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
@@ -2224,11 +2224,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22242224
case "fulfilled":
22252225
if ("function" === typeof resolve) {
22262226
for (
2227-
var inspectedValue = this.value;
2227+
var inspectedValue = this.value, cycleProtection = 0;
22282228
inspectedValue instanceof ReactPromise;
22292229

22302230
) {
2231-
if (inspectedValue === this) {
2231+
cycleProtection++;
2232+
if (inspectedValue === this || 1e3 < cycleProtection) {
22322233
"function" === typeof reject &&
22332234
reject(Error("Cannot have cyclic thenables."));
22342235
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
@@ -5787,11 +5787,12 @@
57875787
case "fulfilled":
57885788
if ("function" === typeof resolve) {
57895789
for (
5790-
var inspectedValue = this.value;
5790+
var inspectedValue = this.value, cycleProtection = 0;
57915791
inspectedValue instanceof ReactPromise;
57925792

57935793
) {
5794-
if (inspectedValue === this) {
5794+
cycleProtection++;
5795+
if (inspectedValue === this || 1e3 < cycleProtection) {
57955796
"function" === typeof reject &&
57965797
reject(Error("Cannot have cyclic thenables."));
57975798
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
@@ -2249,11 +2249,12 @@ ReactPromise.prototype.then = function (resolve, reject) {
22492249
case "fulfilled":
22502250
if ("function" === typeof resolve) {
22512251
for (
2252-
var inspectedValue = this.value;
2252+
var inspectedValue = this.value, cycleProtection = 0;
22532253
inspectedValue instanceof ReactPromise;
22542254

22552255
) {
2256-
if (inspectedValue === this) {
2256+
cycleProtection++;
2257+
if (inspectedValue === this || 1e3 < cycleProtection) {
22572258
"function" === typeof reject &&
22582259
reject(Error("Cannot have cyclic thenables."));
22592260
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-9224f4bf-20251211",
52-
"react-dom": "0.0.0-experimental-9224f4bf-20251211"
51+
"react": "0.0.0-experimental-abb88194-20251211",
52+
"react-dom": "0.0.0-experimental-abb88194-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
@@ -3226,10 +3226,10 @@
32263226
return hook.checkDCE ? !0 : !1;
32273227
})({
32283228
bundleType: 1,
3229-
version: "19.2.0-canary-9224f4bf-20251211",
3229+
version: "19.2.0-canary-abb88194-20251211",
32303230
rendererPackageName: "react-server-dom-turbopack",
32313231
currentDispatcherRef: ReactSharedInternals,
3232-
reconcilerVersion: "19.2.0-canary-9224f4bf-20251211",
3232+
reconcilerVersion: "19.2.0-canary-abb88194-20251211",
32333233
getCurrentComponentInfo: function () {
32343234
return currentOwnerInDEV;
32353235
}

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
@@ -4900,11 +4900,12 @@
49004900
case "fulfilled":
49014901
if ("function" === typeof resolve) {
49024902
for (
4903-
var inspectedValue = this.value;
4903+
var inspectedValue = this.value, cycleProtection = 0;
49044904
inspectedValue instanceof ReactPromise;
49054905

49064906
) {
4907-
if (inspectedValue === this) {
4907+
cycleProtection++;
4908+
if (inspectedValue === this || 1e3 < cycleProtection) {
49084909
"function" === typeof reject &&
49094910
reject(Error("Cannot have cyclic thenables."));
49104911
return;

0 commit comments

Comments
 (0)