Commit ce45bf6
Throw more specific error if passed undefined in React.cloneElement (facebook#12534)
* throw error if passed undefined
* should be TypeError
* simplify
* use invariant
* editor messed up spacing
* better check
* Revert "better check"
This reverts commit 2733707.
* yarn prettier test was failing
* more explicit copy
* es6 import
* tests
* formatting
* Move import1 parent d6bef36 commit ce45bf6
File tree
2 files changed
+21
-0
lines changed- packages/react/src
- __tests__
2 files changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
293 | 300 | | |
294 | 301 | | |
295 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
362 | 376 | | |
0 commit comments