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

Javascript promise not support finally

    XMLWordPrintable

Details

    • Windows

    Description

      I cannot use Promise.finally in QML.

      Error message is TypeError: Property 'finally' of object [object Promise] is not a function.

      Sample code here: 

      Promise.resolve(1) 
      .then(()=>console.log("then")) 
      .finally(()=>console.log("finally"))
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            qifen Jared Chang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes