Skip to content

Commit f9e9bc5

Browse files
committed
Conflicts fixed on "Error handling, 'try...catch'" page and tasks in
french language
1 parent f1f6136 commit f9e9bc5

File tree

3 files changed

+39
-196
lines changed

3 files changed

+39
-196
lines changed

1-js/10-error-handling/1-try-catch/1-finally-or-code-after/solution.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
La différence devient évidente quand on regarde le code dans une fonction.
22

3-
<<<<<<< HEAD
4-
Le comportement est différent s'il y a un "saut" en dehors de `try..catch`.
3+
Le comportement est différent s'il y a un "saut en dehors" de `try..catch`.
54

6-
Par exemple, quand il y a un `return` dans `try..catch`. La clause `finally` fonctionne en cas de *toute* sortie de` try..catch`, même via l'instruction `return`: juste après la fin de `try..catch`, mais avant que le code appelant obtienne le contrôle.
7-
=======
8-
The behavior is different if there's a "jump out" of `try...catch`.
9-
10-
For instance, when there's a `return` inside `try...catch`. The `finally` clause works in case of *any* exit from `try...catch`, even via the `return` statement: right after `try...catch` is done, but before the calling code gets the control.
11-
>>>>>>> e01998baf8f85d9d6cef9f1add6c81b901f16d69
5+
Par exemple, quand il y a un `return` dans `try..catch`. La clause `finally` fonctionne en cas de *toute* sortie de` try..catch`, même via l'instruction `return` : juste après la fin de `try..catch`, mais avant que le code appelant obtienne le contrôle.
126

137
```js run
148
function f() {

1-js/10-error-handling/1-try-catch/1-finally-or-code-after/task.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ importance: 5
66

77
Comparez les deux fragments de code.
88

9-
<<<<<<< HEAD
10-
1. Le premier utilise `finally` pour exécuter le code après `try..catch`:
11-
=======
12-
1. The first one uses `finally` to execute the code after `try...catch`:
13-
>>>>>>> e01998baf8f85d9d6cef9f1add6c81b901f16d69
9+
1. Le premier utilise `finally` pour exécuter le code après `try..catch` :
1410

1511
```js
1612
try {
@@ -23,11 +19,7 @@ Comparez les deux fragments de code.
2319
*/!*
2420
}
2521
```
26-
<<<<<<< HEAD
27-
2. Le deuxième fragment met le "cleanup" juste après `try..catch`:
28-
=======
29-
2. The second fragment puts the cleaning right after `try...catch`:
30-
>>>>>>> e01998baf8f85d9d6cef9f1add6c81b901f16d69
22+
2. Le deuxième fragment fait le nettoyage juste après `try..catch` :
3123

3224
```js
3325
try {

0 commit comments

Comments
 (0)