Skip to content

Are descriptor structs allowed in ToJSValue? #42

@eqrion

Description

@eqrion

One goal I've heard is that descriptor structs can be eventually implemented directly using the existing Shape/Map/Structure objects that Web VMs already use on wasm GC objects.

However, a Shape (in SM at least) is not a JS object and should not be accessible to JS scripts. I don't think it could conceivably work even as an opaque thing like wasm GC objects are now. Things like typeof wouldn't know what to do with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions