Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73320

Some strange try catch escalation

XMLWordPrintable

    • 729b1ceb8904a857ba4c804e8a58b9ef4ef7b193

      function test()
      {
      	var x = function() {
      		var x;
      		try {
      			x = parseInt("12");
      			
      		} catch(e) {
      			console.log("Why this here>", e);
      		}
      		
      		undefSomeFunction();
      	}
      	
      	x();
      }
      
      test();
      

      results:
      test.js[9]: Why this here> ReferenceError: undefSomeFunction is not defined

      Exception is somehow escalated to try-catch block before.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            erikv Erik Verbruggen
            zvova7890 Vova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes