Commit 0c4ce2e
committed
Fix unhelpful error message if React can't be loaded
If React fails to load from a user-provided bundle, the script load
exception would be hidden from the user, because the exception is stored
to a field and then rethrown later. EnsureReactLoaded was
getting called before the real exception was thrown, which threw a new
(unhelpful) exception.1 parent 79ca155 commit 0c4ce2e
File tree
2 files changed
+23
-1
lines changed- src/React.Core
- tests/React.Tests/Core
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
158 | 180 | | |
159 | 181 | | |
160 | 182 | | |
| |||
0 commit comments