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

qqmljsscope: duplicated entries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.10
    • 6.8
    • QML: Tooling
    • None

    Description

      It seems like the scopes of JS global types are duplicated.

      They appear as m_jsIdentifiers in the scope that has the internal name of `global`. They also appear as m_methods and m_properties in the scope that has the internal name of `GlobalObject`.

      For example, the scope of Math object can be found under global->m_jsIdentifiers["Math"] or GlobalObject->m_properties["Math"].

       

      1. Are these duplicated entries expected? What is the rationale if so ?

      There are a few elements I detected that appears only in GlobalObject->m_methods but not as global->m_jsProperties, like "qsTranslate" and "URLSearchParams". 

      2. Is there something special about these that they don't appear under global->m_jsIdentifiers?

       

       

       

      Attachments

        1. GlobalObject-methods
          6 kB
          Semih Yavuz
        2. globalscope-jsIdentifiers
          7 kB
          Semih Yavuz
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            semih.yavuz Semih Yavuz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes