react-server-dom-webpack 19.0.0-rc-1eaccd82-20240816 → 19.0.0-rc-6ebfd5b0-20240818

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -189,6 +189,39 @@
189
189
  error += "\n at " + structuredStackTrace[i].toString();
190
190
  return error;
191
191
  }
192
+ function parseStackTrace(error, skipFrames) {
193
+ a: {
194
+ var previousPrepare = Error.prepareStackTrace;
195
+ Error.prepareStackTrace = prepareStackTrace;
196
+ try {
197
+ var stack = String(error.stack);
198
+ break a;
199
+ } finally {
200
+ Error.prepareStackTrace = previousPrepare;
201
+ }
202
+ stack = void 0;
203
+ }
204
+ stack.startsWith("Error: react-stack-top-frame\n") &&
205
+ (stack = stack.slice(29));
206
+ error = stack.indexOf("react-stack-bottom-frame");
207
+ -1 !== error && (error = stack.lastIndexOf("\n", error));
208
+ -1 !== error && (stack = stack.slice(0, error));
209
+ stack = stack.split("\n");
210
+ for (error = []; skipFrames < stack.length; skipFrames++)
211
+ if ((previousPrepare = frameRegExp.exec(stack[skipFrames]))) {
212
+ var name = previousPrepare[1] || "";
213
+ "<anonymous>" === name && (name = "");
214
+ var filename = previousPrepare[2] || previousPrepare[5] || "";
215
+ "<anonymous>" === filename && (filename = "");
216
+ error.push([
217
+ name,
218
+ filename,
219
+ +(previousPrepare[3] || previousPrepare[6]),
220
+ +(previousPrepare[4] || previousPrepare[7])
221
+ ]);
222
+ }
223
+ return error;
224
+ }
192
225
  function createTemporaryReference(temporaryReferences, id) {
193
226
  var reference = Object.defineProperties(
194
227
  function () {
@@ -589,10 +622,10 @@
589
622
  default:
590
623
  if (1 === request.status)
591
624
  return (
625
+ request.abortableTasks.delete(newTask),
592
626
  (newTask.status = 3),
593
627
  (task = stringify(serializeByValueID(request.fatalError))),
594
628
  emitModelChunk(request, newTask.id, task),
595
- request.abortableTasks.delete(newTask),
596
629
  newTask.id
597
630
  );
598
631
  "string" !== typeof thenable.status &&
@@ -1182,10 +1215,26 @@
1182
1215
  existingId = writtenServerReferences.get(serverReference);
1183
1216
  if (void 0 !== existingId) return "$F" + existingId.toString(16);
1184
1217
  existingId = serverReference.$$bound;
1185
- existingId = {
1186
- id: serverReference.$$id,
1187
- bound: existingId ? Promise.resolve(existingId) : null
1188
- };
1218
+ existingId = null === existingId ? null : Promise.resolve(existingId);
1219
+ var id = serverReference.$$id,
1220
+ location = null,
1221
+ error = serverReference.$$location;
1222
+ error &&
1223
+ ((error = parseStackTrace(error, 1)),
1224
+ 0 < error.length && (location = error[0]));
1225
+ existingId =
1226
+ null !== location
1227
+ ? {
1228
+ id: id,
1229
+ bound: existingId,
1230
+ name:
1231
+ "function" === typeof serverReference
1232
+ ? serverReference.name
1233
+ : "",
1234
+ env: (0, request.environmentName)(),
1235
+ location: location
1236
+ }
1237
+ : { id: id, bound: existingId };
1189
1238
  request = outlineModel(request, existingId);
1190
1239
  writtenServerReferences.set(serverReference, request);
1191
1240
  return "$F" + request.toString(16);
@@ -1658,46 +1707,14 @@
1658
1707
  try {
1659
1708
  if (error instanceof Error) {
1660
1709
  var message = String(error.message);
1661
- var filterStackFrame = request.filterStackFrame;
1662
- a: {
1663
- var previousPrepare = Error.prepareStackTrace;
1664
- Error.prepareStackTrace = prepareStackTrace;
1665
- try {
1666
- var stack = String(error.stack);
1667
- break a;
1668
- } finally {
1669
- Error.prepareStackTrace = previousPrepare;
1670
- }
1671
- stack = void 0;
1672
- }
1673
- stack.startsWith("Error: react-stack-top-frame\n") &&
1674
- (stack = stack.slice(29));
1675
- var idx = stack.indexOf("react-stack-bottom-frame");
1676
- -1 !== idx && (idx = stack.lastIndexOf("\n", idx));
1677
- -1 !== idx && (stack = stack.slice(0, idx));
1678
- var frames = stack.split("\n");
1679
- stack = [];
1680
1710
  for (
1681
- previousPrepare = 0;
1682
- previousPrepare < frames.length;
1683
- previousPrepare++
1711
+ var filterStackFrame = request.filterStackFrame,
1712
+ stack = parseStackTrace(error, 0),
1713
+ i = 0;
1714
+ i < stack.length;
1715
+ i++
1684
1716
  ) {
1685
- var parsed = frameRegExp.exec(frames[previousPrepare]);
1686
- if (parsed) {
1687
- var name = parsed[1] || "";
1688
- "<anonymous>" === name && (name = "");
1689
- var filename = parsed[2] || parsed[5] || "";
1690
- "<anonymous>" === filename && (filename = "");
1691
- stack.push([
1692
- name,
1693
- filename,
1694
- +(parsed[3] || parsed[6]),
1695
- +(parsed[4] || parsed[7])
1696
- ]);
1697
- }
1698
- }
1699
- for (frames = 0; frames < stack.length; frames++) {
1700
- var callsite = stack[frames],
1717
+ var callsite = stack[i],
1701
1718
  functionName = callsite[0],
1702
1719
  url = callsite[1];
1703
1720
  if (url.startsWith("rsc://React/")) {
@@ -1707,8 +1724,7 @@
1707
1724
  -1 < suffixIdx &&
1708
1725
  (url = callsite[1] = url.slice(envIdx + 1, suffixIdx));
1709
1726
  }
1710
- filterStackFrame(url, functionName) ||
1711
- (stack.splice(frames, 1), frames--);
1727
+ filterStackFrame(url, functionName) || (stack.splice(i, 1), i--);
1712
1728
  }
1713
1729
  var stack$jscomp$0 = stack;
1714
1730
  var errorEnv = error.environmentName;
@@ -3368,8 +3384,9 @@
3368
3384
  stringify = JSON.stringify,
3369
3385
  CLOSED = 3,
3370
3386
  currentRequest = null,
3371
- debugID = null,
3372
- modelRoot = !1,
3387
+ debugID = null;
3388
+ stringify("$@");
3389
+ var modelRoot = !1,
3373
3390
  emptyRoot = {},
3374
3391
  chunkCache = new Map(),
3375
3392
  chunkMap = new Map(),
@@ -3490,6 +3507,7 @@
3490
3507
  configurable: !0
3491
3508
  },
3492
3509
  $$bound: { value: null, configurable: !0 },
3510
+ $$location: { value: Error("react-stack-top-frame"), configurable: !0 },
3493
3511
  bind: { value: bind, configurable: !0 }
3494
3512
  });
3495
3513
  };
@@ -782,10 +782,10 @@ function serializeThenable(request, task, thenable) {
782
782
  default:
783
783
  if (1 === request.status)
784
784
  return (
785
+ request.abortableTasks.delete(newTask),
785
786
  (newTask.status = 3),
786
787
  (task = stringify(serializeByValueID(request.fatalError))),
787
788
  emitModelChunk(request, newTask.id, task),
788
- request.abortableTasks.delete(newTask),
789
789
  newTask.id
790
790
  );
791
791
  "string" !== typeof thenable.status &&
@@ -1194,6 +1194,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1194
1194
  function serializeByValueID(id) {
1195
1195
  return "$" + id.toString(16);
1196
1196
  }
1197
+ stringify("$@");
1197
1198
  function encodeReferenceChunk(request, id, reference) {
1198
1199
  request = stringify(reference);
1199
1200
  id = id.toString(16) + ":" + request + "\n";
@@ -1529,13 +1530,14 @@ function renderModelDestructive(
1529
1530
  void 0 !== parentPropertyName
1530
1531
  ? (request = "$F" + parentPropertyName.toString(16))
1531
1532
  : ((parentPropertyName = value.$$bound),
1532
- (parentPropertyName = {
1533
+ (parentPropertyName =
1534
+ null === parentPropertyName
1535
+ ? null
1536
+ : Promise.resolve(parentPropertyName)),
1537
+ (request = outlineModel(request, {
1533
1538
  id: value.$$id,
1534
1539
  bound: parentPropertyName
1535
- ? Promise.resolve(parentPropertyName)
1536
- : null
1537
- }),
1538
- (request = outlineModel(request, parentPropertyName)),
1540
+ })),
1539
1541
  task.set(value, request),
1540
1542
  (request = "$F" + request.toString(16))),
1541
1543
  request
@@ -185,6 +185,39 @@
185
185
  error += "\n at " + structuredStackTrace[i].toString();
186
186
  return error;
187
187
  }
188
+ function parseStackTrace(error, skipFrames) {
189
+ a: {
190
+ var previousPrepare = Error.prepareStackTrace;
191
+ Error.prepareStackTrace = prepareStackTrace;
192
+ try {
193
+ var stack = String(error.stack);
194
+ break a;
195
+ } finally {
196
+ Error.prepareStackTrace = previousPrepare;
197
+ }
198
+ stack = void 0;
199
+ }
200
+ stack.startsWith("Error: react-stack-top-frame\n") &&
201
+ (stack = stack.slice(29));
202
+ error = stack.indexOf("react-stack-bottom-frame");
203
+ -1 !== error && (error = stack.lastIndexOf("\n", error));
204
+ -1 !== error && (stack = stack.slice(0, error));
205
+ stack = stack.split("\n");
206
+ for (error = []; skipFrames < stack.length; skipFrames++)
207
+ if ((previousPrepare = frameRegExp.exec(stack[skipFrames]))) {
208
+ var name = previousPrepare[1] || "";
209
+ "<anonymous>" === name && (name = "");
210
+ var filename = previousPrepare[2] || previousPrepare[5] || "";
211
+ "<anonymous>" === filename && (filename = "");
212
+ error.push([
213
+ name,
214
+ filename,
215
+ +(previousPrepare[3] || previousPrepare[6]),
216
+ +(previousPrepare[4] || previousPrepare[7])
217
+ ]);
218
+ }
219
+ return error;
220
+ }
188
221
  function createTemporaryReference(temporaryReferences, id) {
189
222
  var reference = Object.defineProperties(
190
223
  function () {
@@ -593,10 +626,10 @@
593
626
  default:
594
627
  if (1 === request.status)
595
628
  return (
629
+ request.abortableTasks.delete(newTask),
596
630
  (newTask.status = 3),
597
631
  (task = stringify(serializeByValueID(request.fatalError))),
598
632
  emitModelChunk(request, newTask.id, task),
599
- request.abortableTasks.delete(newTask),
600
633
  newTask.id
601
634
  );
602
635
  "string" !== typeof thenable.status &&
@@ -1194,10 +1227,26 @@
1194
1227
  existingId = writtenServerReferences.get(serverReference);
1195
1228
  if (void 0 !== existingId) return "$F" + existingId.toString(16);
1196
1229
  existingId = serverReference.$$bound;
1197
- existingId = {
1198
- id: serverReference.$$id,
1199
- bound: existingId ? Promise.resolve(existingId) : null
1200
- };
1230
+ existingId = null === existingId ? null : Promise.resolve(existingId);
1231
+ var id = serverReference.$$id,
1232
+ location = null,
1233
+ error = serverReference.$$location;
1234
+ error &&
1235
+ ((error = parseStackTrace(error, 1)),
1236
+ 0 < error.length && (location = error[0]));
1237
+ existingId =
1238
+ null !== location
1239
+ ? {
1240
+ id: id,
1241
+ bound: existingId,
1242
+ name:
1243
+ "function" === typeof serverReference
1244
+ ? serverReference.name
1245
+ : "",
1246
+ env: (0, request.environmentName)(),
1247
+ location: location
1248
+ }
1249
+ : { id: id, bound: existingId };
1201
1250
  request = outlineModel(request, existingId);
1202
1251
  writtenServerReferences.set(serverReference, request);
1203
1252
  return "$F" + request.toString(16);
@@ -1681,46 +1730,14 @@
1681
1730
  try {
1682
1731
  if (error instanceof Error) {
1683
1732
  var message = String(error.message);
1684
- var filterStackFrame = request.filterStackFrame;
1685
- a: {
1686
- var previousPrepare = Error.prepareStackTrace;
1687
- Error.prepareStackTrace = prepareStackTrace;
1688
- try {
1689
- var stack = String(error.stack);
1690
- break a;
1691
- } finally {
1692
- Error.prepareStackTrace = previousPrepare;
1693
- }
1694
- stack = void 0;
1695
- }
1696
- stack.startsWith("Error: react-stack-top-frame\n") &&
1697
- (stack = stack.slice(29));
1698
- var idx = stack.indexOf("react-stack-bottom-frame");
1699
- -1 !== idx && (idx = stack.lastIndexOf("\n", idx));
1700
- -1 !== idx && (stack = stack.slice(0, idx));
1701
- var frames = stack.split("\n");
1702
- stack = [];
1703
1733
  for (
1704
- previousPrepare = 0;
1705
- previousPrepare < frames.length;
1706
- previousPrepare++
1734
+ var filterStackFrame = request.filterStackFrame,
1735
+ stack = parseStackTrace(error, 0),
1736
+ i = 0;
1737
+ i < stack.length;
1738
+ i++
1707
1739
  ) {
1708
- var parsed = frameRegExp.exec(frames[previousPrepare]);
1709
- if (parsed) {
1710
- var name = parsed[1] || "";
1711
- "<anonymous>" === name && (name = "");
1712
- var filename = parsed[2] || parsed[5] || "";
1713
- "<anonymous>" === filename && (filename = "");
1714
- stack.push([
1715
- name,
1716
- filename,
1717
- +(parsed[3] || parsed[6]),
1718
- +(parsed[4] || parsed[7])
1719
- ]);
1720
- }
1721
- }
1722
- for (frames = 0; frames < stack.length; frames++) {
1723
- var callsite = stack[frames],
1740
+ var callsite = stack[i],
1724
1741
  functionName = callsite[0],
1725
1742
  url = callsite[1];
1726
1743
  if (url.startsWith("rsc://React/")) {
@@ -1730,8 +1747,7 @@
1730
1747
  -1 < suffixIdx &&
1731
1748
  (url = callsite[1] = url.slice(envIdx + 1, suffixIdx));
1732
1749
  }
1733
- filterStackFrame(url, functionName) ||
1734
- (stack.splice(frames, 1), frames--);
1750
+ filterStackFrame(url, functionName) || (stack.splice(i, 1), i--);
1735
1751
  }
1736
1752
  var stack$jscomp$0 = stack;
1737
1753
  var errorEnv = error.environmentName;
@@ -3400,8 +3416,9 @@
3400
3416
  stringify = JSON.stringify,
3401
3417
  CLOSED = 3,
3402
3418
  currentRequest = null,
3403
- debugID = null,
3404
- modelRoot = !1,
3419
+ debugID = null;
3420
+ stringify("$@");
3421
+ var modelRoot = !1,
3405
3422
  emptyRoot = {},
3406
3423
  chunkCache = new Map(),
3407
3424
  hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -3514,6 +3531,7 @@
3514
3531
  configurable: !0
3515
3532
  },
3516
3533
  $$bound: { value: null, configurable: !0 },
3534
+ $$location: { value: Error("react-stack-top-frame"), configurable: !0 },
3517
3535
  bind: { value: bind, configurable: !0 }
3518
3536
  });
3519
3537
  };
@@ -787,10 +787,10 @@ function serializeThenable(request, task, thenable) {
787
787
  default:
788
788
  if (1 === request.status)
789
789
  return (
790
+ request.abortableTasks.delete(newTask),
790
791
  (newTask.status = 3),
791
792
  (task = stringify(serializeByValueID(request.fatalError))),
792
793
  emitModelChunk(request, newTask.id, task),
793
- request.abortableTasks.delete(newTask),
794
794
  newTask.id
795
795
  );
796
796
  "string" !== typeof thenable.status &&
@@ -1199,6 +1199,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1199
1199
  function serializeByValueID(id) {
1200
1200
  return "$" + id.toString(16);
1201
1201
  }
1202
+ stringify("$@");
1202
1203
  function encodeReferenceChunk(request, id, reference) {
1203
1204
  request = stringify(reference);
1204
1205
  id = id.toString(16) + ":" + request + "\n";
@@ -1534,13 +1535,14 @@ function renderModelDestructive(
1534
1535
  void 0 !== parentPropertyName
1535
1536
  ? (request = "$F" + parentPropertyName.toString(16))
1536
1537
  : ((parentPropertyName = value.$$bound),
1537
- (parentPropertyName = {
1538
+ (parentPropertyName =
1539
+ null === parentPropertyName
1540
+ ? null
1541
+ : Promise.resolve(parentPropertyName)),
1542
+ (request = outlineModel(request, {
1538
1543
  id: value.$$id,
1539
1544
  bound: parentPropertyName
1540
- ? Promise.resolve(parentPropertyName)
1541
- : null
1542
- }),
1543
- (request = outlineModel(request, parentPropertyName)),
1545
+ })),
1544
1546
  task.set(value, request),
1545
1547
  (request = "$F" + request.toString(16))),
1546
1548
  request
@@ -212,6 +212,39 @@
212
212
  error += "\n at " + structuredStackTrace[i].toString();
213
213
  return error;
214
214
  }
215
+ function parseStackTrace(error, skipFrames) {
216
+ a: {
217
+ var previousPrepare = Error.prepareStackTrace;
218
+ Error.prepareStackTrace = prepareStackTrace;
219
+ try {
220
+ var stack = String(error.stack);
221
+ break a;
222
+ } finally {
223
+ Error.prepareStackTrace = previousPrepare;
224
+ }
225
+ stack = void 0;
226
+ }
227
+ stack.startsWith("Error: react-stack-top-frame\n") &&
228
+ (stack = stack.slice(29));
229
+ error = stack.indexOf("react-stack-bottom-frame");
230
+ -1 !== error && (error = stack.lastIndexOf("\n", error));
231
+ -1 !== error && (stack = stack.slice(0, error));
232
+ stack = stack.split("\n");
233
+ for (error = []; skipFrames < stack.length; skipFrames++)
234
+ if ((previousPrepare = frameRegExp.exec(stack[skipFrames]))) {
235
+ var name = previousPrepare[1] || "";
236
+ "<anonymous>" === name && (name = "");
237
+ var filename = previousPrepare[2] || previousPrepare[5] || "";
238
+ "<anonymous>" === filename && (filename = "");
239
+ error.push([
240
+ name,
241
+ filename,
242
+ +(previousPrepare[3] || previousPrepare[6]),
243
+ +(previousPrepare[4] || previousPrepare[7])
244
+ ]);
245
+ }
246
+ return error;
247
+ }
215
248
  function createTemporaryReference(temporaryReferences, id) {
216
249
  var reference = Object.defineProperties(
217
250
  function () {
@@ -617,10 +650,10 @@
617
650
  default:
618
651
  if (1 === request.status)
619
652
  return (
653
+ request.abortableTasks.delete(newTask),
620
654
  (newTask.status = 3),
621
655
  (task = stringify(serializeByValueID(request.fatalError))),
622
656
  emitModelChunk(request, newTask.id, task),
623
- request.abortableTasks.delete(newTask),
624
657
  newTask.id
625
658
  );
626
659
  "string" !== typeof thenable.status &&
@@ -1213,10 +1246,26 @@
1213
1246
  existingId = writtenServerReferences.get(serverReference);
1214
1247
  if (void 0 !== existingId) return "$F" + existingId.toString(16);
1215
1248
  existingId = serverReference.$$bound;
1216
- existingId = {
1217
- id: serverReference.$$id,
1218
- bound: existingId ? Promise.resolve(existingId) : null
1219
- };
1249
+ existingId = null === existingId ? null : Promise.resolve(existingId);
1250
+ var id = serverReference.$$id,
1251
+ location = null,
1252
+ error = serverReference.$$location;
1253
+ error &&
1254
+ ((error = parseStackTrace(error, 1)),
1255
+ 0 < error.length && (location = error[0]));
1256
+ existingId =
1257
+ null !== location
1258
+ ? {
1259
+ id: id,
1260
+ bound: existingId,
1261
+ name:
1262
+ "function" === typeof serverReference
1263
+ ? serverReference.name
1264
+ : "",
1265
+ env: (0, request.environmentName)(),
1266
+ location: location
1267
+ }
1268
+ : { id: id, bound: existingId };
1220
1269
  request = outlineModel(request, existingId);
1221
1270
  writtenServerReferences.set(serverReference, request);
1222
1271
  return "$F" + request.toString(16);
@@ -1695,46 +1744,14 @@
1695
1744
  try {
1696
1745
  if (error instanceof Error) {
1697
1746
  var message = String(error.message);
1698
- var filterStackFrame = request.filterStackFrame;
1699
- a: {
1700
- var previousPrepare = Error.prepareStackTrace;
1701
- Error.prepareStackTrace = prepareStackTrace;
1702
- try {
1703
- var stack = String(error.stack);
1704
- break a;
1705
- } finally {
1706
- Error.prepareStackTrace = previousPrepare;
1707
- }
1708
- stack = void 0;
1709
- }
1710
- stack.startsWith("Error: react-stack-top-frame\n") &&
1711
- (stack = stack.slice(29));
1712
- var idx = stack.indexOf("react-stack-bottom-frame");
1713
- -1 !== idx && (idx = stack.lastIndexOf("\n", idx));
1714
- -1 !== idx && (stack = stack.slice(0, idx));
1715
- var frames = stack.split("\n");
1716
- stack = [];
1717
1747
  for (
1718
- previousPrepare = 0;
1719
- previousPrepare < frames.length;
1720
- previousPrepare++
1748
+ var filterStackFrame = request.filterStackFrame,
1749
+ stack = parseStackTrace(error, 0),
1750
+ i = 0;
1751
+ i < stack.length;
1752
+ i++
1721
1753
  ) {
1722
- var parsed = frameRegExp.exec(frames[previousPrepare]);
1723
- if (parsed) {
1724
- var name = parsed[1] || "";
1725
- "<anonymous>" === name && (name = "");
1726
- var filename = parsed[2] || parsed[5] || "";
1727
- "<anonymous>" === filename && (filename = "");
1728
- stack.push([
1729
- name,
1730
- filename,
1731
- +(parsed[3] || parsed[6]),
1732
- +(parsed[4] || parsed[7])
1733
- ]);
1734
- }
1735
- }
1736
- for (frames = 0; frames < stack.length; frames++) {
1737
- var callsite = stack[frames],
1754
+ var callsite = stack[i],
1738
1755
  functionName = callsite[0],
1739
1756
  url = callsite[1];
1740
1757
  if (url.startsWith("rsc://React/")) {
@@ -1744,8 +1761,7 @@
1744
1761
  -1 < suffixIdx &&
1745
1762
  (url = callsite[1] = url.slice(envIdx + 1, suffixIdx));
1746
1763
  }
1747
- filterStackFrame(url, functionName) ||
1748
- (stack.splice(frames, 1), frames--);
1764
+ filterStackFrame(url, functionName) || (stack.splice(i, 1), i--);
1749
1765
  }
1750
1766
  var stack$jscomp$0 = stack;
1751
1767
  var errorEnv = error.environmentName;
@@ -3417,8 +3433,9 @@
3417
3433
  stringify = JSON.stringify,
3418
3434
  CLOSED = 3,
3419
3435
  currentRequest = null,
3420
- debugID = null,
3421
- modelRoot = !1,
3436
+ debugID = null;
3437
+ stringify("$@");
3438
+ var modelRoot = !1,
3422
3439
  emptyRoot = {},
3423
3440
  chunkCache = new Map(),
3424
3441
  hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -3537,12 +3554,12 @@
3537
3554
  "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
3538
3555
  );
3539
3556
  pendingFiles++;
3540
- var JSCompiler_object_inline_chunks_143 = [];
3557
+ var JSCompiler_object_inline_chunks_133 = [];
3541
3558
  value.on("data", function (chunk) {
3542
- JSCompiler_object_inline_chunks_143.push(chunk);
3559
+ JSCompiler_object_inline_chunks_133.push(chunk);
3543
3560
  });
3544
3561
  value.on("end", function () {
3545
- var blob = new Blob(JSCompiler_object_inline_chunks_143, {
3562
+ var blob = new Blob(JSCompiler_object_inline_chunks_133, {
3546
3563
  type: mimeType
3547
3564
  });
3548
3565
  response._formData.append(name, blob, filename);
@@ -3585,6 +3602,7 @@
3585
3602
  configurable: !0
3586
3603
  },
3587
3604
  $$bound: { value: null, configurable: !0 },
3605
+ $$location: { value: Error("react-stack-top-frame"), configurable: !0 },
3588
3606
  bind: { value: bind, configurable: !0 }
3589
3607
  });
3590
3608
  };
@@ -803,10 +803,10 @@ function serializeThenable(request, task, thenable) {
803
803
  default:
804
804
  if (1 === request.status)
805
805
  return (
806
+ request.abortableTasks.delete(newTask),
806
807
  (newTask.status = 3),
807
808
  (task = stringify(serializeByValueID(request.fatalError))),
808
809
  emitModelChunk(request, newTask.id, task),
809
- request.abortableTasks.delete(newTask),
810
810
  newTask.id
811
811
  );
812
812
  "string" !== typeof thenable.status &&
@@ -1214,6 +1214,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1214
1214
  function serializeByValueID(id) {
1215
1215
  return "$" + id.toString(16);
1216
1216
  }
1217
+ stringify("$@");
1217
1218
  function encodeReferenceChunk(request, id, reference) {
1218
1219
  request = stringify(reference);
1219
1220
  return id.toString(16) + ":" + request + "\n";
@@ -1547,13 +1548,14 @@ function renderModelDestructive(
1547
1548
  void 0 !== parentPropertyName
1548
1549
  ? (request = "$F" + parentPropertyName.toString(16))
1549
1550
  : ((parentPropertyName = value.$$bound),
1550
- (parentPropertyName = {
1551
+ (parentPropertyName =
1552
+ null === parentPropertyName
1553
+ ? null
1554
+ : Promise.resolve(parentPropertyName)),
1555
+ (request = outlineModel(request, {
1551
1556
  id: value.$$id,
1552
1557
  bound: parentPropertyName
1553
- ? Promise.resolve(parentPropertyName)
1554
- : null
1555
- }),
1556
- (request = outlineModel(request, parentPropertyName)),
1558
+ })),
1557
1559
  task.set(value, request),
1558
1560
  (request = "$F" + request.toString(16))),
1559
1561
  request
@@ -2726,12 +2728,12 @@ exports.decodeReplyFromBusboy = function (busboyStream, webpackMap, options) {
2726
2728
  "React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
2727
2729
  );
2728
2730
  pendingFiles++;
2729
- var JSCompiler_object_inline_chunks_211 = [];
2731
+ var JSCompiler_object_inline_chunks_213 = [];
2730
2732
  value.on("data", function (chunk) {
2731
- JSCompiler_object_inline_chunks_211.push(chunk);
2733
+ JSCompiler_object_inline_chunks_213.push(chunk);
2732
2734
  });
2733
2735
  value.on("end", function () {
2734
- var blob = new Blob(JSCompiler_object_inline_chunks_211, {
2736
+ var blob = new Blob(JSCompiler_object_inline_chunks_213, {
2735
2737
  type: mimeType
2736
2738
  });
2737
2739
  response._formData.append(name, blob, filename);