Update sentence in Unhandled rejections
This commit is contained in:
parent
c5ca14fdcb
commit
b82136a94c
1 changed files with 1 additions and 1 deletions
|
@ -635,7 +635,7 @@ new Promise(function() {
|
||||||
|
|
||||||
In case of an error, the promise state becomes "rejected", and the execution should jump to the closest rejection handler. But there is no such handler in the examples above. So the error gets "stuck".
|
In case of an error, the promise state becomes "rejected", and the execution should jump to the closest rejection handler. But there is no such handler in the examples above. So the error gets "stuck".
|
||||||
|
|
||||||
In practice, that's usually because of the bad code. Indeed, how come that there's no error handling?
|
In practice, that's usually because of the bad code. Indeed, how come there's no error handling?
|
||||||
|
|
||||||
Most JavaScript engines track such situations and generate a global error in that case. We can see it in the console.
|
Most JavaScript engines track such situations and generate a global error in that case. We can see it in the console.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue