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

Qml Crash on "this" when using "apply" asynchronously

    XMLWordPrintable

Details

    Description

      It seems like the "this" seems to be lost in the example.

      I'm generating a wrapping function from generator(fn,...) . And then passing the generated function onto a timer to execute later. It crashes a 100% of the time.

      The workaround for now is to use "fn.apply({}, args)" in the generator. This issue didn't happen in 5.6.0 if I recall correctly and I have tested this similar code in node.js to double check that this is valid js behavior.

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              shahan@zabaat.com Shahan
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes