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

Javascript program is not cached on Symbian like other platforms

    XMLWordPrintable

Details

    • 563b5891e2f918f901ffefe29872dfac1b9a60e7

    Description

      Class QDeclarativeExpression (/src/declarative/qml/qdeclarativeexpression.cpp) comes with following lines of code

      #if !defined(Q_OS_SYMBIAN) //XXX Why doesn't this work?
              if (!dd->cachedPrograms.at(progIdx)) {
                  dd->cachedPrograms[progIdx] = new QScriptProgram(expression, url, line);
              }
      
              expressionFunction = evalInObjectScope(ctxt, me, *dd->cachedPrograms.at(progIdx), 
                                                           &expressionContext);
      #else
              expressionFunction = evalInObjectScope(ctxt, me, expression, &expressionContext);
      #endif
      

      Apparently the caching made earlier versions of QML crash on Symbian. This seems not to happen any more, so it would be nice to re-enable caching.

      Attachments

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

        Activity

          People

            jpetrell Joona Petrell
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes