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

Exception handlers are used for too long

XMLWordPrintable

    • 729b1ceb8904a857ba4c804e8a58b9ef4ef7b193

      The code below should throw an exception, but it doesn't: it's handled by the catch block (!!).

      function weird(func) {
        try {
          func();
        } catch (thrown) {
          print("oops:", thrown)
          return;
        }
      
        print("the next exception should not be handled, but exit the function....")
        throw("xxx")
      };
      weird(function(){})
      

        For Gerrit Dashboard: QTBUG-72858
        # Subject Branch Project Status CR V

            laknoll Lars Knoll
            erikv Erik Verbruggen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes