-
-
Notifications
You must be signed in to change notification settings - Fork 661
Commit
Closes #11321
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -484,7 +484,7 @@ let catch_native ctx catches t p = | |
| [], None -> | ||
catches_to_ifs ctx catches t p | ||
| [], Some catch -> | ||
catches_to_ifs ctx [catch] t p | ||
catches_to_ifs ctx (catch :: catches) t p | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kLabz
Author
Contributor
|
||
| _ -> | ||
catches_as_value_exception ctx handle_as_value_exception None t p | ||
:: catches_to_ifs ctx catches t p | ||
|
Hmm, this changes exception order, right? I think it should be possible to construct a case which prioritizes
ValueException
over another catch clause that appears before it.