Repository navigation
Commit de7e643
authored
Remove $FlowFixMe[sketchy-null-string] (errors.js) (#59976)
Summary:
Replace the optional original error stack's `||` fallback with an explicit null-or-empty ternary. Read the stack getter once in the Error branch and preserve the direct string branch, including `''`. Null/undefined/empty stacks still evaluate the existing `''.split('\n').slice(0, 2).join('\n')` fallback; nonempty stacks are unchanged. Do not alter the fallback's existing behavior.
Changelog: [Internal]
Differential Revision: D129900981
Pull Request resolved: #599761 parent aedc2e7 commit de7e643
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
0 commit comments