Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.9.1
-
None
Description
function test() { var exceptionCaught = false; try { console.log("try"); } catch(e) { console.log("catch " + e); exceptionCaught = true; } if(!exceptionCaught) throw "exception thrown outside above try scope"; else console.log("executed again?!"); }
If I call this function I get the following output:
qml: try qml: catch exception thrown outside above try scope qml: executed again?!
Unless I'm missing some JavaScript subtlety, this seems somewhat wrong. It appears as if the try scope is extending over the whole function, and the "program counter" is getting moved back to the catch block and the code outside the try..catch is being re-executed?