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

Closures capturing scripts should not (ab)use properties to keep the reference

    XMLWordPrintable

Details

    Description

      A closure needs to make sure that it keeps the script array of its context alive (if it references variables from there). Currently, we use an invalid property to tell the gc about it; however, an alternative would be to have dedicated Function subclasses to track them.

       

      We don't want to add a member to reference scrips to every function though, as that functionality is only needed when scripts are actually imported, which isn't that common.

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes