Skip to content

What does it mean to invoke the Blob constructor with zero parameters? #54

Description

@bzbarsky

For example, what should this do:

var b = new Blob(undefined, { type: "foo" });

? Should b.type be empty string or "foo"? In any case, there is no concept of "number of parameters" for IDL implementation algorithms, so please define the behavior in terms of concepts that do exist.

Activity

  1. annevk commented on Nov 24, 2016

    @annevk
    Member

    What I think we want to end up with is b.type is "foo" and b's size is 0.

    One way to make this easier to define is to change the IDL to default to the empty sequence, which is now a thing. Then both parameters are always provided and the prose does not have to worry about them being omitted.

  2. changed the title [-]Whatdoes it mean to invoke the Blob constructor with zero parameters?[/-] [+]What does it mean to invoke the Blob constructor with zero parameters?[/+] on Nov 24, 2016
  3. added a commit that references this issue on Apr 5, 2019
    fb9508f
  4. added a commit that references this issue on Apr 14, 2020
    07dc190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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