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

Regression: WorkerScript loaded script cannot define functions

XMLWordPrintable

    • 7d25db8ff452926e58b7a66608666b35c194fc69

      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.

        1. JsTest.qml
          0.2 kB
        2. jstest.js
          0.1 kB
        For Gerrit Dashboard: QTBUG-36874
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes