Skip to content

Clarify yield-priority-timers.any.js #113

@sefeng211

Description

@sefeng211

For https://github.com/web-platform-tests/wpt/blob/master/scheduler/tentative/yield/yield-priority-timers.any.js, I am having a hard time understanding the expected behaviour.

My interpretation is that scheduler.yield() dispatches a task for its promise to resolve, so when the first setTimeout handler run, it'll dispatch a task for this, and this task can possibly not be run until the second and the third setTimeout handlers to finish. I am not sure how the spec enforces the task for scheduler.yield() to run first.

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