Skip to content

Creating a context should be done using finer-grained in-parallel steps #919

@gterzian

Description

@gterzian

create-a-context is called from in-parallel steps defined as part of dom-ml-createcontext.

But creating a context then manipulates realm objects from those parallel steps, for example: "Set context.[[lost]] to a new promise in realm.", which is against the guidance in the HTML spec on event-loop-for-spec-authors.

So I propose creating the MLContext object directly using steps on the event-loop, and then just adding a finer-grained in-parallel step to "start the timeline for the context in an implementation defined manner", and then to queue a task to reject or resolve the promise based on whether that operation was successful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions