Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
5.11.0
-
None
Description
When I use a try-catch block in QML javascript code, the catch() part executes even for exceptions thrown outside the try{} block. A simple example:
Component.onCompleted: {
try{
// throw new Error("should be caught")
}catch(err)
{ print('caught error', err) } print('after try-catch')
throw new Error("should not be caught")
}
The catch() block obviously should not execute.