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

Regression: WorkerScript loaded script cannot define functions

    XMLWordPrintable

    Details

    • Commits:
      7d25db8ff452926e58b7a66608666b35c194fc69

      Description

      Loading the following code via WorkerScript will result in "Invalid write to global property 'func'" in 5.2:

      "jstest.js"
      function func() {
          console.log("success!")
      }
      
      "JsTest.qml"
      WorkerScript {
          id: worker
          source: "jstest.js"
      }
      

      An example that can be run via qmlscene is attached.

      This is a regression against 5.1.x.

        Attachments

        1. jstest.js
          0.1 kB
        2. JsTest.qml
          0.2 kB

          Issue Links

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

            Activity

              People

              Assignee:
              mbrasser Michael Brasser
              Reporter:
              mbrasser Michael Brasser
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes