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

Exception handlers are used for too long

    XMLWordPrintable

Details

    • 729b1ceb8904a857ba4c804e8a58b9ef4ef7b193

    Description

      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(){})
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes