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

Iterating over Properties of a Proxied Object does not work

    XMLWordPrintable

    Details

      Description

      I have the need to wrap an object in a JS proxy. The proxy handler must be implemented in C++. The target "object" is empty and acts just as a dummy. More important is the functionality of the proxy to intercept property accesses and to re-route them to own logic.

      When wrapping an arbitrary object in a Javascript proxy, it is not possible to iterate over the proxied properties. I see that ownKeys() is called on the handler, but no further action is taken.

      Iterating over the object with a for..of loop requests Symbol.iterator which I have no idea of how to produce that in C++.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              rweickelt Richard Weickelt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes