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

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

XMLWordPrintable

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes