Skip to content

Update listener internal slots to map<name, structure> #470

Open
@zolkis

Description

@zolkis

Currently internal slots for [[readHandlers]], [[writeHandlers]], etc. are a map from name to a handler function.

Besides that function, the steps require saving |options| and other information as well.
So the internal slots will need to contain an object like

dictionary HandlerData {
    required function handler;
    sequence<InteractionOptions> subscriberOptions;
    sequence<any> subscriberData;
}

We could also add the |interaction| for convenience, but it can me retrieved using |name|.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThoughts and ideas about possible improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions