[Webkit-unassigned] [Bug 223122] New: [SameObject] is not applied in FrozenArrays or TypeArrays

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 12 07:53:11 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=223122

            Bug ID: 223122
           Summary: [SameObject] is not applied in FrozenArrays or
                    TypeArrays
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Bindings
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ifernandez at igalia.com
                CC: cdumez at apple.com

Hi,

I'm trying to pass some WebXR [SameObject] related tests and found that [SameObject] doesn't work as expected with array related types. JS correctly receives the same object when using DOM wrappers but not when using FrozenArrays o TypedArrays (using Vec<T> and Float32Array in the C++ DOM class).

Is there any problem in the binding code generation or Vec<T>/TypesArrays should be wrapped in a special way to be cached to comply with [SameObject], such as DOMStringList instead of Vec<String>/FrozenArray<String>?

I didn't find good examples of other module specs using [SameObject] with FrozeArrays/TypedArrays, almost all of them are in WebXR spec :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210312/4a91aefa/attachment-0001.htm>


More information about the webkit-unassigned mailing list