Skip to content

Replace usages of "Return success with data 'null'" with "EmptyResult" #125

Open
@whimboo

Description

@whimboo

There a couple of references in the WebDriver BiDi spec that refer to Return success with data null, eg. the remote steps of the session.subscribe command. This is in conflict with the ResultData type that doesn't allow that, but defines the empty result as EmptyResult = {}.

As @jgraham said on Elements:

Returning null there is wrong, although maybe we could special case it in the caller. We should say:

  1. Let |body| be a new map matching the EmptyResult production.
  2. Return [=success=] with data |body|

The return null thing works in HTTP so I think that's where the error has come from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions