Repository navigation
Commit dadd9fd
Type argument for
Summary:
`ensureInstance(clonedErrors[0], TypeError)` in `structuredClone-itest.js` leaves `T` underconstrained under Flow's new type-argument inference (`experimental.implicit_instantiation_walk`), which does not solve `T` from `Class<T>` against `TypeError`. The explicit `<TypeError>` is what the current inference picks, so the call checks the same in both.
Changelog: [Internal]
Differential Revision: D132764250ensureInstance in the structuredClone test1 parent 83e2029 commit dadd9fd
1 file changed
Lines changed: 4 additions & 1 deletion
File tree
- packages/react-native/src/private/webapis/structuredClone/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
344 | 347 | | |
345 | 348 | | |
346 | 349 | | |
| |||
0 commit comments