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

QJSEngine: No way to catch non-immediate exceptions

    XMLWordPrintable

Details

    Description

      jsengine.evaluate("someUndefined()");

      will throw an error and I can catch it in the return value of the engine. That works great.

       

      However:

       

      jsengine.evaulate("

      someQObject.mySignal.connect(function() {

         someUndefined();

      });

      ");

       

      will fail completely silently with no way to catch the errors.

       

      QtScriptEngine had signalHandlerException(const QScriptValue & exception)

      but there's no equivalent making us regress when porting.

       

      Can we add an equivalent signal to QJSEngine emitted from QV4::ExectutionEngine::catchException?

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            davidedmundson David Edmundson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes