Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1742

new JS engine bugs

    XMLWordPrintable

Details

    • All
    • 12bc60c93 (2.3)

    Description

      1. In Provider context, Probes cannot have access to the fake qbs module.

      property path sysroot: qbs.toolchain && qbs.toolchain.includes("xcode")
                                 ? undefined : qbs.sysroot
          Probes.QbsPkgConfigProbe {
              id: theProbe
              _sysroot: sysroot // oops
          }
      
      // qbspkgconfig.qbs:69:19 'qbs' is not defined
      

      2. In Provider context , typo in the imported module name/function is not reported; execution is silently aborted:

      // smth like that
      import qbs.ModUtils;
      relativeSearchPaths: {
          console.info(ModUtils.nonExist("pkg.name")); // no error
      }
      

      3. string list props cannot be compared for equality:

      Product {
      condition: {
          console.info(qbs.targetOS);
          console.info(qbs.hostOS);
          console.info(qbs.hostOS == qbs.targetOS);
          return true;
      }
      }
      macos,darwin,bsd,unix
      macos,darwin,bsd,unix
      false
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            arch Ivan Komissarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes