Skip to content

Separating constructor and new? #193

Closed
@domenic

Description

@domenic

I'm trying to implement whatwg/streams#1035 and running into the issue that we don't have a way to invoke the Web IDL new operation without also invoking the impl constructor.

The impl constructor is what backs the wrapper constructor. But in specs we have two different paths for creating platform objects:

  • new PlatformObject() from JS code runs these steps
  • Specs will do "new PlatformObject" and then initialize them directly.

We don't currently have a way of doing the latter.

I'll probably investigate with some patches locally in the streams repo, but this issue can track upstreaming them.

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