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

Atomics objects TypeError when running in QML

    XMLWordPrintable

Details

    • Linux/X11

    Description

      We have been developing test cases for Squish CoCo QML analysis.
      I was trying to develop a test case where I try to use Javascript Atomics -objects in QML code.

      My problem is that it seems the Qt qml runners returns a TypeError for these type of static objects, even they are listed here

      Issue can be reproduced with a simple code snippet as follows:

      import QtQuick 2.15
      
      QtObject {
          Component.onCompleted: {
              const buffer = new ArrayBuffer(16)  // Same issue with SharedArrayBuffer
              const uint8 = new Uint8Array(buffer)
              uint8[0] = 7
              console.log(Atomics.load(uint8, 0))
              Qt.callLater(Qt.quit)
          }
      }
      

      Reproduced with both, Qt6.3.1 and Qt 5.15.10

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            hehonkal Henri Honkala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes